File tree Expand file tree Collapse file tree 2 files changed +12
-18
lines changed Expand file tree Collapse file tree 2 files changed +12
-18
lines changed Original file line number Diff line number Diff line change 1
1
name : Publish Package to npmjs
2
+ run-name : ${{ github.actor }} publish to npm 🚀
3
+
2
4
on :
3
- push :
4
- tags :
5
- - " v*.*.*"
6
- jobs :
7
- # Then release to npm
8
5
release :
6
+ types : [published]
7
+ jobs :
8
+ build :
9
9
runs-on : ubuntu-latest
10
10
permissions :
11
11
contents : read
12
12
id-token : write # Needed for https://docs.npmjs.com/generating-provenance-statements
13
- strategy :
14
- matrix :
15
- node-version : [18]
16
-
17
13
steps :
18
- - name : Checkout repo
19
- uses : actions/checkout@v4
20
- # Set up .npmrc file to publish to npm. This also allows NODE_AUTH_TOKEN
21
- # to work below.
14
+ - uses : actions/checkout@v4
15
+ # Setup .npmrc file to publish to npm
22
16
- uses : actions/setup-node@v4
23
17
with :
24
- node-version : " 18.x"
25
- registry-url : " https://registry.npmjs.org"
26
-
18
+ node-version : ' 18.x'
19
+ registry-url : ' https://registry.npmjs.org'
27
20
- run : yarn
28
21
# for Yarn v1, use `yarn publish` instead
29
22
- run : yarn npm publish
30
23
env :
31
24
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
25
+
Original file line number Diff line number Diff line change @@ -2,6 +2,6 @@ nodeLinker: node-modules
2
2
3
3
yarnPath : .yarn/releases/yarn-3.6.4.cjs
4
4
5
- npmAuthToken : " ${NPM_TOKEN}"
5
+ npmAuthToken : ${NPM_TOKEN}
6
6
npmAlwaysAuth : true
7
- npmRegistryServer : https://npm.pkg.github.com # URL for private registry
7
+ # npmRegistryServer: https://npm.pkg.github.com # URL for private registry
You can’t perform that action at this time.
0 commit comments