We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c59c3e6 commit 7015fd0Copy full SHA for 7015fd0
.github/workflows/publish_on_npm.yml
@@ -1,26 +1,22 @@
1
name: Publish to npm
2
on:
3
push:
4
+ branches: master
5
tags:
6
- '*'
7
8
jobs:
- deploy:
9
+ publish:
10
runs-on: ubuntu-latest
-
11
steps:
12
- - name: Checkout code
13
- uses: actions/checkout@v4
14
15
- - name: Set up Node.js
16
- uses: actions/setup-node@v4
+ - uses: actions/checkout@v4
+ # Setup .npmrc file to publish to npm
+ - uses: actions/setup-node@v4
17
with:
18
- node-version: '20'
19
20
- - name: Install dependencies
21
- run: npm install
22
23
- - name: Publish to npm
24
- run: npm publish --access public
+ node-version: '20.x'
+ registry-url: 'https://registry.npmjs.org'
+ - run: npm install
+ - run: npm test
+ - run: npm publish
25
env:
26
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments