This repository was archived by the owner on Oct 6, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-29
lines changed Expand file tree Collapse file tree 1 file changed +8
-29
lines changed Original file line number Diff line number Diff line change 1
1
name : Publish
2
-
3
- on :
4
- workflow_dispatch :
5
- inputs :
6
- version :
7
- description : ' Version major | minor | patch'
8
- required : true
9
- default : ' minor'
2
+ on : workflow_dispatch
10
3
jobs :
11
4
publish-npm :
12
5
runs-on : ubuntu-latest
13
6
steps :
14
- - uses : actions/checkout@v1
15
- - uses : actions/setup-node@v1
16
- - run : yarn install --frozen-lockfile
17
- - name : npm version
18
- run : |
19
- npm version ${{ github.event.inputs.version }} --git-tag-version=false
20
- - uses : EndBug/add-and-commit@v5
7
+ - uses : actions/checkout@v2
8
+ # Setup .npmrc file to publish to npm
9
+ - uses : actions/setup-node@v2
21
10
with :
22
- # The arguments for the `git add` command (see the paragraph below for more info)
23
- # Default: '.'
24
- add : ' .'
25
-
26
- # The name of the user that will be displayed as the author of the commit
27
- # Default: author of the commit that triggered the run
28
- author_name : Release Bot
29
- message : ' Bump version: by ${{github.actor}}'
11
+ node-version : ' 14.x'
12
+ - run : yarn install --frozen-lockfile
13
+ - run : npm publish
30
14
env :
31
- # This is necessary in order to push a commit to the repo
32
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged
33
-
34
- - uses : JS-DevTools/npm-publish@v1
35
- with :
36
- token : ${{ secrets.NPM_TOKEN }}
15
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments