Build with node 20 #9
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: Release Workflow | |
on: | |
push: | |
branches: | |
- release | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "20" | |
registry-url: "https://registry.npmjs.org" | |
- name: Install dependencies | |
run: | | |
yarn install | |
- name: Build (core) | |
run: | | |
yarn workspace @beakjs/core build | |
- name: Build (react) | |
run: | | |
yarn workspace @beakjs/react build | |
- name: Publish (core) | |
run: | | |
yarn workspace @beakjs/core publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Publish (react) | |
run: | | |
yarn workspace @beakjs/react publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |