Skip to content

Merge branch 'main' of github.com:PPLEThai/pple-design-system #19

Merge branch 'main' of github.com:PPLEThai/pple-design-system

Merge branch 'main' of github.com:PPLEThai/pple-design-system #19

Workflow file for this run

name: Release
on:
push:
branches: [main]
permissions:
contents: write
pull-requests: write
id-token: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
# Trusted publishing requires npm >= 11.5.1 (OIDC + provenance).
- name: Install npm for trusted publishing
run: npm install -g npm@11.5.1
- run: pnpm install --frozen-lockfile
- name: Create Release Pull Request or Publish
uses: changesets/action@v1
with:
version: pnpm changeset version
# Use a pnpm script so `&&` runs in a shell (changesets/action uses exec without shell).
publish: pnpm run ci:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Empty string prevents changesets/action from writing an npm token to .npmrc
# so npm can authenticate via GitHub OIDC (trusted publishing).
NPM_TOKEN: ""
NPM_CONFIG_PROVENANCE: "true"