File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build
2+ on : push
3+ jobs :
4+ build :
5+ runs-on : ubuntu-latest
6+ steps :
7+ - name : Checkout
8+ uses : actions/checkout@v2
9+ - name : Setup Node
10+ uses : actions/setup-node@v2
11+ with :
12+ node-version : ' 21.x'
13+ registry-url : ' https://registry.npmjs.org'
14+ - name : Install dependencies and build 🔧
15+ run : npm ci && npm run build
Original file line number Diff line number Diff line change 1+ name : Publish to NPM
2+ on :
3+ release :
4+ types : [created]
5+ jobs :
6+ build :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - name : Checkout
10+ uses : actions/checkout@v2
11+ - name : Setup Node
12+ uses : actions/setup-node@v2
13+ with :
14+ node-version : ' 21.x'
15+ registry-url : ' https://registry.npmjs.org'
16+ - name : Install dependencies and build 🔧
17+ run : npm ci && npm run build
18+ - name : Publish package on NPM 📦
19+ run : npm publish --access=public
20+ env :
21+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments