Skip to content

Merge pull request #18 from nodecg/add-ci #1

Merge pull request #18 from nodecg/add-ci

Merge pull request #18 from nodecg/add-ci #1

Workflow file for this run

name: release-please
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
packages: write
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
release_name: ${{ steps.release.outputs.name }}
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
release-type: node
publish:
runs-on: ubuntu-latest
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: 'https://registry.npmjs.org'
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build
- run: gh release upload ${{ needs.release-please.outputs.release_name }} $(npm pack)
env:
GH_TOKEN: ${{ github.token }}
- run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}