Skip to content

Merge pull request #8 from MatanYadaev/changeset-release/main #7

Merge pull request #8 from MatanYadaev/changeset-release/main

Merge pull request #8 from MatanYadaev/changeset-release/main #7

Workflow file for this run

name: Release
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
PNPM_VERSION: 8.6.3
jobs:
ci:
uses: ./.github/workflows/ci.yaml
secrets: inherit
release:
needs: ci
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: ${{ env.PNPM_VERSION }}
- uses: actions/setup-node@v3
with:
node-version: 20.x
cache: pnpm
- run: pnpm install
- uses: changesets/action@v1
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}