Skip to content

Commit e8e7dc4

Browse files
Create npm-publish.yml
1 parent 24f5c92 commit e8e7dc4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/npm-publish.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Node.js CI
5+
6+
on:
7+
['push']
8+
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: cycjimmy/[email protected]
15+
id: semantic
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
19+
- if: steps.semantic.outputs.new_release_published == 'true'
20+
run: |
21+
echo ${{ steps.semantic.outputs.new_release_version }}

0 commit comments

Comments
 (0)