File tree Expand file tree Collapse file tree 3 files changed +48
-7
lines changed Expand file tree Collapse file tree 3 files changed +48
-7
lines changed Original file line number Diff line number Diff line change 2
2
name : Publish Package to npmjs
3
3
run-name : ${{ github.actor }} publish to npm 🚀
4
4
5
+ # on:
6
+ # release:
7
+ # types: [published]
5
8
on :
6
- release :
7
- types : [published]
9
+ push :
10
+ branches :
11
+ # Change this if your primary branch is not main
12
+ - master
13
+ - develop
14
+
15
+ permissions :
16
+ contents : read # for checkout
17
+
8
18
jobs :
9
19
build :
10
20
runs-on : ubuntu-latest
21
+ environment :
22
+ name : Grim # your environment name
11
23
permissions :
12
- contents : read
13
- id-token : write # Needed for https://docs.npmjs.com/generating-provenance-statements
24
+ contents : write # to be able to publish a GitHub release
25
+ issues : write # to be able to comment on released issues
26
+ pull-requests : write # to be able to comment on released pull requests
27
+ id-token : write # to enable use of OIDC for npm provenance
14
28
steps :
15
29
- uses : actions/checkout@v4
16
30
# need this for using yarn
25
39
cache : ' yarn'
26
40
- run : yarn
27
41
# for Yarn v1, use `yarn publish` instead
28
- - run : yarn npm publish
42
+ # - run: yarn npm publish
43
+ - run : npx semantic-release
29
44
env :
30
45
# this will be used in .yarnrc.yml
46
+ GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
31
47
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
32
48
Original file line number Diff line number Diff line change
1
+ {
2
+ "branches": [
3
+ "main",
4
+ "dev"
5
+ ],
6
+ "plugins": [
7
+ "@semantic-release/commit-analyzer",
8
+ "@semantic-release/release-notes-generator",
9
+ [
10
+ "@semantic-release/changelog",
11
+ {
12
+ "changelogFile": "CHANGELOG.md"
13
+ }
14
+ ],
15
+ [
16
+ "@semantic-release/git",
17
+ {
18
+ "assets": [
19
+ "CHANGELOG.md"
20
+ ]
21
+ }
22
+ ],
23
+ "@semantic-release/github"
24
+
25
+ ]
26
+ }
Original file line number Diff line number Diff line change 118
118
"react-dom" : " ^18.2.0" ,
119
119
"rimraf" : " ^5.0.5" ,
120
120
"typescript" : " ^5.2.2"
121
- },
122
- "packageManager" : " yarn@3.6.4"
121
+ }
123
122
}
You can’t perform that action at this time.
0 commit comments