Skip to content

fix: windows npm install (#132) #46

fix: windows npm install (#132)

fix: windows npm install (#132) #46

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-please.outputs.release_created }}
release_name: ${{ steps.release-please.outputs.name }}
steps:
- uses: googleapis/release-please-action@v4
id: release-please
with:
release-type: node
publish:
runs-on: ubuntu-latest
needs: release-please
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
registry-url: "https://registry.npmjs.org"
cache: npm
- run: npm ci
- run: npm run build
- if: ${{ needs.release-please.outputs.release_created }}
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- if: ${{ !needs.release-please.outputs.release_created }}
run: |
npm version 0.0.0-canary.${{ github.sha }} --no-git-tag-version
npm publish --tag canary
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}