Skip to content

Merge pull request #1 from 10XStartup/main #2

Merge pull request #1 from 10XStartup/main

Merge pull request #1 from 10XStartup/main #2

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'
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:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}