fix: content claims derives (#74) #120
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 | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
inputs: | |
force_release_cli: | |
type: boolean | |
description: release packages/cli even if it normally wouldn't (e.g. due to release-please checks) | |
default: false | |
force_release_core: | |
type: boolean | |
description: release packages/core even if it normally wouldn't (e.g. due to release-please checks) | |
default: false | |
force_release_infra: | |
type: boolean | |
description: release packages/infra even if it normally wouldn't (e.g. due to release-please checks) | |
default: false | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
outputs: | |
paths_released: ${{ steps.release.outputs.paths_released }} | |
steps: | |
- uses: google-github-actions/release-please-action@v3 | |
id: release | |
with: | |
command: manifest | |
config-file: .github/release-please-config.json | |
manifest-file: .github/release-please-manifest.json | |
default-branch: main | |
release-type: node | |
npm-core: | |
name: npm publish @web3-storage/content-claims | |
needs: release | |
if: contains(fromJson(needs.release.outputs.paths_released), 'packages/core') || inputs.force_release_core | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/[email protected] | |
with: | |
version: 8 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
registry-url: 'https://registry.npmjs.org' | |
cache: 'npm' | |
- run: npm ci | |
- run: npm run build --workspace=packages/core | |
- run: npm publish --access=public --workspace=packages/core --provenance | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
npm-cli: | |
name: npm publish @web3-storage/content-claims-cli | |
needs: release | |
if: contains(fromJson(needs.release.outputs.paths_released), 'packages/cli') || inputs.force_release_cli | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/[email protected] | |
with: | |
version: 8 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
registry-url: 'https://registry.npmjs.org' | |
cache: 'npm' | |
- run: npm ci | |
- run: npm run build --workspace=packages/cli | |
- run: npm publish --access=public --workspace=packages/cli --provenance | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
npm-infra: | |
name: npm publish @web3-storage/content-claims-infra | |
needs: release | |
if: contains(fromJson(needs.release.outputs.paths_released), 'packages/infra') || inputs.force_release_infra | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/[email protected] | |
with: | |
version: 8 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
registry-url: 'https://registry.npmjs.org' | |
cache: 'npm' | |
- run: npm ci | |
- run: npm run build --workspace=packages/infra | |
- run: npm publish --access=public --workspace=packages/infra --provenance | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |