File tree 2 files changed +21
-5
lines changed
2 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,19 @@ jobs:
12
12
- uses : actions/checkout@v4
13
13
- uses : actions/setup-node@v4
14
14
with :
15
- node-version : 20
15
+ node-version : 22
16
16
registry-url : ' https://registry.npmjs.org'
17
- - run : npm i
18
- - run : npm run build
19
- - run : npm version $(node --eval="process.stdout.write(require('./package.json').version)")-dev.$(git rev-parse --short HEAD) --no-git-tag-version
20
- - run : npm publish --no-git-tag-version --tag dev
17
+
18
+ - name : install
19
+ run : npm i
20
+
21
+ - name : build
22
+ run : npm run build
23
+
24
+ - name : publish
25
+ run : |
26
+ echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" >> .npmrc
27
+ npm version $(node --eval="process.stdout.write(require('./package.json').version)")-dev.$(git rev-parse --short HEAD) --no-git-tag-version
28
+ npm publish --provenance --access=public --no-git-tag-version --tag dev
21
29
env :
22
30
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change @@ -3,3 +3,11 @@ node_modules/
3
3
coverage /
4
4
yarn.lock
5
5
src /playground.ts
6
+
7
+ # Credentials
8
+ ** /* .asc
9
+ ** /* .key
10
+ ** /* .pem
11
+ ** /* .cert
12
+ ** /.npmrc
13
+ ** /.yarnrc
You can’t perform that action at this time.
0 commit comments