docs: add hook to demo app to test rendering #65
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 release | |
on: | |
push: | |
branches: | |
- "main" | |
jobs: | |
tag-and-publish-to-npm: | |
runs-on: ubuntu-latest | |
if: "startsWith(github.event.head_commit.message, 'release: ')" | |
steps: | |
- uses: actions/[email protected] | |
- name: Extract version | |
shell: bash | |
run: echo "TAG_NAME=$(git log -1 --oneline --pretty=%B | sed 's/release:\ //g')" >> $GITHUB_ENV | |
- name: Tag commit | |
uses: tvdias/[email protected] | |
with: | |
repo-token: "${{ secrets.GH_TOKEN }}" | |
tag: ${{ env.TAG_NAME }} | |
- name: Setup Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: "18.16.1" | |
registry-url: "https://registry.npmjs.org" | |
- name: Install dependencies | |
run: yarn | |
- name: Publish core | |
run: cd packages/core && npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Publish adaptor-strapi | |
run: cd packages/adaptor-strapi && npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Publish plugin-heading-analyzer | |
run: cd packages/plugin-heading-analyzer && npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Publish create-puck-app | |
run: cd packages/create-puck-app && npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
timeout-minutes: 10 |