Skip to content

Version Packages (#2444) #1267

Version Packages (#2444)

Version Packages (#2444) #1267

Workflow file for this run

name: Release
on:
push:
branches:
- main
- 'release/**'
permissions:
contents: write
pull-requests: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3.3.0
with:
node-version: '18.x'
registry-url: https://registry.npmjs.org/
cache: 'yarn'
- name: Install Dependencies
run: yarn --frozen-lockfile
- name: Build
run: yarn build
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: yarn changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}