Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 99ae27a

Browse filesBrowse files
authored
Introduce publish workflow (#14)
Publish package
1 parent 925e064 commit 99ae27a
Copy full SHA for 99ae27a

File tree

Expand file treeCollapse file tree

1 file changed

+26
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+26
-0
lines changed

‎.github/workflows/publish.yml

Copy file name to clipboard
+26Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
publish-npm:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: 16
15+
registry-url: https://registry.npmjs.org/
16+
cache: npm
17+
- run: npm ci
18+
- run: npm test
19+
- run: |
20+
echo "Publishing $TAG_NAME"
21+
npm version ${TAG_NAME} --git-tag-version=false
22+
env:
23+
TAG_NAME: ${{github.event.release.tag_name}}
24+
- run: npm whoami; npm --ignore-scripts publish
25+
env:
26+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.