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 47caee4 commit 4cb4dabCopy full SHA for 4cb4dab
.github/workflows/npm-publish.yml
@@ -2,8 +2,6 @@ name: Node.js Package Workflow
2
3
on:
4
push:
5
- branches:
6
- - main
7
tags:
8
- 'v*'
9
@@ -25,28 +23,7 @@ jobs:
25
23
- name: Install dependencies
26
24
run: npm ci
27
28
- - name: Build package
29
- run: npm run build
30
-
31
- name: Publish package
32
run: npm publish
33
env:
34
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
35
36
- test:
37
- runs-on: ubuntu-latest
38
- steps:
39
- - name: Check out code
40
- uses: actions/checkout@v3
41
42
- - name: Set up Node.js
43
- uses: actions/setup-node@v3
44
- with:
45
- node-version: '18'
46
- cache: 'npm'
47
48
- - name: Install dependencies
49
- run: npm ci
50
51
- - name: Run tests
52
- run: npm test
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments