v0.1.0 #1
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: Release | |
on: | |
workflow_dispatch: | |
release: | |
types: [created] | |
concurrency: | |
group: ${{ github.ref }}-release | |
cancel-in-progress: true | |
jobs: | |
npm-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Wait for CI to succeed | |
uses: lewagon/wait-on-check-action@master | |
with: | |
ref: ${{ github.ref }} | |
check-name: 'Lint/Test' | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
wait-interval: 10 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- uses: actions/checkout@v3 | |
- name: Cache node_modules | |
id: cache | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }} | |
- name: Install | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: yarn install --frozen-lockfile --ignore-scripts | |
- name: Build | |
run: yarn build | |
- name: Publish | |
run: yarn publish | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |