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

Sign up
Appearance settings

Commit 11a28df

Browse files
authored
Merge pull request #75 from RedisGraph/ck-npmpublish
npm publish on tag
2 parents 61d4f12 + 317a3ec commit 11a28df

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

‎.github/workflows/npm-publish.yml‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
on:
2+
push:
3+
tags:
4+
- '*'
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
- name: setup node
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: 12
17+
18+
- name: get version from tag
19+
id: get_version
20+
run: |
21+
realversion="${GITHUB_REF/refs\/tags\//}"
22+
realversion="${realversion//v/}"
23+
echo "::set-output name=VERSION::$realversion"
24+
25+
- name: publish to npm
26+
run: npm publish --tag ${{steps.get_version.outputs.VERSION}}
27+
env:
28+
NPM_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /