Release GrapesJS React rc: v2.0.0-rc.2 (#32) #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Setup NPM Auth | |
run: | | |
echo "//registry.yarnpkg.com/:_authToken=${NODE_AUTH_TOKEN}" >> ./packages/grapesjs-react/.npmrc | |
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" >> ./packages/grapesjs-react/.npmrc | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.ORG_NPM_TOKEN }} | |
- name: Publish to npm | |
run: yarn publish:core:rc | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.ORG_NPM_TOKEN }} |