Skip to content

Commit d23b9c2

Browse files
authored
ci: add publish rc (#29)
1 parent 02f332b commit d23b9c2

2 files changed

Lines changed: 25 additions & 1 deletion

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish GrapesJS React rc
2+
on:
3+
push:
4+
branches: [main]
5+
6+
jobs:
7+
publish:
8+
if: "contains(github.event.head_commit.message, 'Release GrapesJS React rc:')"
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
- name: Setup project
14+
uses: ./.github/actions/setup-project
15+
- name: Build
16+
run: yarn build:core
17+
- name: Publish to npm
18+
env:
19+
NODE_AUTH_TOKEN: ${{ secrets.ORG_NPM_TOKEN }}
20+
run: |
21+
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" >> ./packages/grapesjs-react/.npmrc
22+
yarn publish:core:rc

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
"build:app-18": "yarn workspace @grapesjs/react-app-18 run build",
1414
"build:app-19": "yarn workspace @grapesjs/react-app-19 run build",
1515
"release:core:latest": "ts-node scripts/releaseCore latest",
16-
"publish:core:latest": "cd packages/grapesjs-react && npm publish --access public"
16+
"release:core:rc": "ts-node scripts/releaseCore rc",
17+
"publish:core:latest": "cd packages/grapesjs-react && npm publish --access public",
18+
"publish:core:rc": "cd packages/grapesjs-react && npm publish --tag rc --access public"
1719
},
1820
"workspaces": {
1921
"packages": [

0 commit comments

Comments
 (0)