-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (40 loc) · 1.08 KB
/
js-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: JS (release)
on:
push:
branches:
- main
paths:
- 'visual-js/**'
defaults:
run:
working-directory: visual-js
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node 18
uses: actions/setup-node@v4
with:
node-version: 18.x
registry-url: https://registry.npmjs.org
- name: Setup Git
if: ${{ steps.prep.outputs.tag_name == '' }}
run: |
git config --global user.name "sauce-visual-bot"
git config --global user.email "[email protected]"
- name: Build
run: |
corepack enable
yarn install
npx changeset status --output=changeset.json
./replace_pkg_version.sh changeset.json
npm run build --workspaces --if-present
- name: upgrade & publish version(s)
run: |
npx changeset version
npx changeset publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}
- name: Push to git
run: git push --follow-tags