Skip to content

Commit 9a95490

Browse files
committed
Added publish workflow (currently in debug mode).
1 parent 0290011 commit 9a95490

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Check out repository
14+
uses: actions/checkout@v3
15+
16+
- name: Install Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: '16'
20+
registry-url: 'https://registry.npmjs.org'
21+
22+
- name: Update NPM to latest
23+
run: npm install npm@latest -g
24+
25+
- name: Print Node.js and NPM version
26+
run: |
27+
node -v
28+
npm -v
29+
30+
- name: Install dependencies
31+
run: npm ci
32+
33+
- name: Build package
34+
run: npm run build
35+
36+
- name: NPM whoami
37+
run: npm whoami
38+
env:
39+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
40+
41+
- name: Publish package
42+
run: npm publish --dry-run
43+
env:
44+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 commit comments

Comments
 (0)