Skip to content

ci(release): change semantic release #3

ci(release): change semantic release

ci(release): change semantic release #3

Workflow file for this run

name: Publish and Release
on:
push:
branches:
- master
permissions:
contents: read # for checkout
jobs:
# build
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # Not needed if lastUpdated is not enabled
- uses: pnpm/action-setup@v2 # pnpm is optional but recommended, you can also use npm / yarn
with:
version: 6
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
cache: pnpm
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Install dependencies
run: pnpm install
- name: Build packages
run: pnpm build
# publish and release
publish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: pnpm publish --filter ./packages/*
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm --filter ./packages/* --workspace-concurrency=1 exec -- npx --no-install semantic-release -e semantic-release-monorepo