Publish #31
Workflow file for this run
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 | |
on: | |
release: | |
types: [published, edited] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.release.tag_name }} | |
- name: Set Node.js 20.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
- name: Update Schemas | |
run: yarn fetch-schemas | |
- name: Install dependencies | |
run: rm -rf node_modules && yarn | |
- name: Run unit tests | |
run: yarn test | |
- name: Build | |
run: yarn build | |
- uses: JasonEtco/build-and-tag-action@v2 | |
env: | |
GITHUB_TOKEN: ${{ github.token }} |