File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : create-github-release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v[0-9]+.[0-9]+.[0-9]+'
7+
8+ jobs :
9+ create-github-release :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v2
13+ - uses : actions/create-release@v1
14+ env :
15+ # This token is provided by Actions, you do not need to create your own token
16+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
17+ with :
18+ tag_name : ${{github.ref}}
19+ release_name : Release ${{github.ref}}
Original file line number Diff line number Diff line change 1+ name : publish-npm
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v[0-9]+.[0-9]+.[0-9]+'
7+
8+ jobs :
9+ publish-npm :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v2
13+ - uses : actions/setup-node@v1
14+ with :
15+ node-version : 12
16+ registry-url : https://registry.npmjs.org
17+ - run : npm publish --access public
18+ env :
19+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
You can’t perform that action at this time.
0 commit comments