Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/release-grapesjs-react-rc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish GrapesJS React rc
on:
push:
branches: [main]

jobs:
publish:
if: "contains(github.event.head_commit.message, 'Release GrapesJS React rc:')"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup project
uses: ./.github/actions/setup-project
- name: Build
run: yarn build:core
- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.ORG_NPM_TOKEN }}
run: |
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" >> ./packages/grapesjs-react/.npmrc
yarn publish:core:rc
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"build:app-18": "yarn workspace @grapesjs/react-app-18 run build",
"build:app-19": "yarn workspace @grapesjs/react-app-19 run build",
"release:core:latest": "ts-node scripts/releaseCore latest",
"publish:core:latest": "cd packages/grapesjs-react && npm publish --access public"
"release:core:rc": "ts-node scripts/releaseCore rc",
"publish:core:latest": "cd packages/grapesjs-react && npm publish --access public",
"publish:core:rc": "cd packages/grapesjs-react && npm publish --tag rc --access public"
},
"workspaces": {
"packages": [
Expand Down