Skip to content

Merge pull request #16 from web3-storage/release-please--branches--ma… #16

Merge pull request #16 from web3-storage/release-please--branches--ma…

Merge pull request #16 from web3-storage/release-please--branches--ma… #16

Workflow file for this run

name: Release
env:
CI: true
FORCE_COLOR: 1
permissions:
contents: write
pull-requests: write
on:
push:
branches:
- main
workflow_dispatch:
inputs:
force_npm_publish:
description: 'publish to npm (ignoring release-please)'
default: false
type: boolean
jobs:
release:
runs-on: ubuntu-latest
outputs:
paths_released: ${{ steps.release.outputs.paths_released }}
steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
config-file: .github/release-please-config.json
manifest-file: .github/release-please-manifest.json
- if: ${{ steps.release.outputs.release_created || inputs.force_npm_publish }}
uses: actions/checkout@v4
- if: ${{ steps.release.outputs.release_created || inputs.force_npm_publish }}
uses: actions/setup-node@v4
with:
node-version: 20.11.1
registry-url: 'https://registry.npmjs.org'
- if: ${{ steps.release.outputs.release_created || inputs.force_npm_publish }}
run: |
npm ci
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}