Skip to content

Commit 04b6d38

Browse files
committed
ci: fix workflow tests
1 parent 586edff commit 04b6d38

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/prebuilt-binaries-cross.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ on:
1212
required: false
1313
default: true
1414
type: boolean
15-
release:
16-
types: [published]
15+
push:
16+
tags:
17+
- "*"
1718

1819
permissions:
1920
contents: write
@@ -334,7 +335,7 @@ jobs:
334335
mkdir -p release
335336
find collected-artifacts -type f -name '*.tar.gz*' -exec cp {} release/ \;
336337
- name: Publish package to npm
337-
if: secrets.NPM_TOKEN != ''
338+
if: ${{ secrets.NPM_TOKEN != '' }}
338339
env:
339340
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
340341
run: npm publish --access public

.github/workflows/prebuilt-binaries.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ on:
1212
required: false
1313
default: true
1414
type: boolean
15-
release:
16-
types: [published]
15+
push:
16+
tags:
17+
- "*"
1718

1819
permissions:
1920
contents: write
@@ -270,7 +271,7 @@ jobs:
270271
mkdir -p release
271272
find collected-artifacts -type f -name '*.tar.gz*' -exec cp {} release/ \;
272273
- name: Publish package to npm
273-
if: secrets.NPM_TOKEN != ''
274+
if: ${{ secrets.NPM_TOKEN != '' }}
274275
env:
275276
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
276277
run: npm publish --access public

0 commit comments

Comments
 (0)