We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b990706 + f3f10b7 commit ea63b95Copy full SHA for ea63b95
.github/workflows/create-release.yaml
@@ -2,7 +2,7 @@ name: Release
2
on:
3
push:
4
branches:
5
- - main-ignore
+ - main
6
7
jobs:
8
build:
.github/workflows/npm-publish.yaml
.github/workflows/publish-release.yaml
@@ -0,0 +1,18 @@
1
+name: publish-release
+on:
+ release:
+ types: [created]
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
9
+ - uses: actions/checkout@v2
10
+ # Setup .npmrc file to publish to npm
11
+ - uses: actions/setup-node@v1
12
+ with:
13
+ node-version: '12.x'
14
+ registry-url: 'https://registry.npmjs.org'
15
+ - run: npm install
16
+ - run: npm publish --access public
17
+ env:
18
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
0 commit comments