File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : npm-publish
2
+ on :
3
+ push :
4
+ tags :
5
+ - " *"
6
+ jobs :
7
+ npm-publish :
8
+ name : npm-publish
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - name : Checkout repository
12
+ uses : actions/checkout@v3
13
+ - name : Use Node.js 16.3.0
14
+ uses : actions/setup-node@v3
15
+ with :
16
+ node-version : 16.3.0
17
+ registry-url : " https://registry.npmjs.org"
18
+ - run : yarn install
19
+ - run : yarn build
20
+ - name : Inject slug/short variables
21
+ uses : rlespinasse/github-slug-action@v4
22
+ - name : Validate Tag
23
+ run : yarn semver $GITHUB_REF_SLUG
24
+ - name : Update versions of packages
25
+ run : yarn setupRelease $GITHUB_REF_SLUG
26
+ - name : Publish packages
27
+ run : npm publish --workspace=packages
28
+ env :
29
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }} #
You can’t perform that action at this time.
0 commit comments