Skip to content

chore: minor changes #3

chore: minor changes

chore: minor changes #3

Workflow file for this run

name: Publish package to NPM registry
# on:
# workflow_run:
# workflows: [CI]
# branches: [main]
# types: [completed]
on:
push:
branches:
- release
pull_request:
branches:
- release
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
publish:
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'
- name: Install
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
publish: yarn run release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}