Skip to content

Commit d075094

Browse files
authored
Update npm-publish.yml
1 parent dcb10a3 commit d075094

1 file changed

Lines changed: 2 additions & 23 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,10 @@ name: publish
55

66
on:
77
release:
8-
types: [created]
8+
types: [published]
99

1010
jobs:
11-
test:
12-
name: Node ${{ matrix.node }} on ${{ matrix.os }}
13-
runs-on: ubuntu-latest
14-
15-
strategy:
16-
matrix:
17-
node: [16]
18-
os: [ubuntu-latest]
19-
20-
steps:
21-
- uses: actions/checkout@v2
22-
- name: Use Node.js ${{ matrix.node }}
23-
uses: actions/setup-node@v2
24-
with:
25-
node-version: ${{ matrix.node }}
26-
cache: 'npm'
27-
- run: npm install --dev
28-
- run: npm run test
29-
30-
publish-npm:
31-
needs: test
11+
publish:
3212
runs-on: ubuntu-latest
3313
steps:
3414
- uses: actions/checkout@v2
@@ -38,7 +18,6 @@ jobs:
3818
with:
3919
node-version: 16
4020
registry-url: https://registry.npmjs.org/
41-
- run: npm ci
4221
- run: git config --global user.name "Sven"
4322
- run: git config --global user.email "mailsvb@gmail.com"
4423
- run: npm version ${{ github.event.release.tag_name }}

0 commit comments

Comments
 (0)