Skip to content

Commit 877d415

Browse files
committed
fix: build and release jobs
1 parent 97e5917 commit 877d415

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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 }} #

0 commit comments

Comments
 (0)