Skip to content

Commit edbbc07

Browse files
committed
workflow update
1 parent eda9400 commit edbbc07

File tree

2 files changed

+25
-31
lines changed

2 files changed

+25
-31
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
# Setup .npmrc file to publish to npm
13+
- uses: actions/setup-node@v2
14+
with:
15+
node-version: '16.x'
16+
registry-url: 'https://registry.npmjs.org'
17+
- run: npm install
18+
19+
- name: get-npm-version
20+
id: package-version
21+
uses: martinbeentjes/npm-get-version-action@master
22+
23+
- run: npm publish --access public
24+
env:
25+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}

0 commit comments

Comments
 (0)