ci: update latest runner #18
This file contains hidden or 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 latest | |
on: | |
push: | |
branches: [main] | |
jobs: | |
publish: | |
if: "contains(github.event.head_commit.message, 'Release GrapesJS React latest:')" | |
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:latest |