[DOCS]chore: pact docs update (#987) #352
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
# Taken from: https://github.com/changesets/action#with-publishing | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
release: | |
name: Changelog PR or Release | |
if: ${{ github.repository_owner == 'kadena-community' }} | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
show-progress: false | |
- name: Setup Node.js 18 | |
uses: actions/setup-node@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build, lint, test all packages | |
run: pnpm turbo build lint test | |
- name: Create Release PR or Publish | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
# Note: pnpm install after versioning is necessary to refresh lockfile | |
version: pnpm run version | |
publish: pnpm run publish | |
commit: 'Update changelogs and bump versions [skip ci]' | |
title: '[ci] Release' | |
env: | |
# Needs "Contents" r+w and "Pull requests" r+w access to open/update PRs and push to main | |
GITHUB_TOKEN: ${{ secrets.RELEASE_ACTION_GITHUB_TOKEN }} | |
# Needs r+w access for packages of both orgs to publish to npm | |
NPM_TOKEN: ${{ secrets.RELEASE_ACTION_NPM_TOKEN }} | |
NPM_CONFIG_PROVENANCE: true | |
- name: Output (debug) | |
if: steps.changesets.outputs.published == 'true' | |
# Do something more interesting when a publish happens. | |
run: echo ${{ steps.changesets.outputs.publishedPackages }} |