Skip to content

Commit 85422cc

Browse files
committed
move automation to action
1 parent 43992c2 commit 85422cc

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/node.js.yml renamed to .github/actions/node.js.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33

44
name: Node.js CI
55

6-
on:
7-
push:
8-
branches: [ "main" ]
9-
pull_request:
10-
branches: [ "main" ]
11-
126
jobs:
137
publish-to-npm:
148

@@ -24,10 +18,13 @@ jobs:
2418
with:
2519
node-version: ${{ matrix.node-version }}
2620
cache: 'npm'
21+
2722
- run: npm install
2823
- run: npm run build
2924
- run: cp cdk.json.built cdk.json
3025
- run: npm pack
26+
- run: npm adduser
27+
- run: npm whoami
3128
- run: npm publish --access=public
3229
env:
33-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
30+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)