Skip to content

Commit 5b42fae

Browse files
authored
chore: update github action to publish package (#86)
updated github action so that whenever we create a new release then only it will be triggered and publish the package to npm
1 parent 7765a9e commit 5b42fae

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

.github/workflows/npm-publish.yml

+2-15
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,14 @@
11
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
33

4-
name: Node.js Package
4+
name: Publish Package
55

66
on:
7-
push:
8-
branches:
9-
- 'release/**'
107
release:
11-
types: [created]
8+
types: [published]
129

1310
jobs:
14-
build:
15-
runs-on: ubuntu-latest
16-
steps:
17-
- uses: actions/checkout@v2
18-
- uses: actions/setup-node@v2
19-
with:
20-
node-version: 12
21-
- run: npm i
22-
2311
publish-npm:
24-
needs: build
2512
runs-on: ubuntu-latest
2613
steps:
2714
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)