Skip to content

v0.0.1

v0.0.1 #1

Workflow file for this run

name: Release
on:
workflow_dispatch:
release:
types:
- published
jobs:
build:
uses: xc2/ghwf/.github/workflows/pnpm-artifact.yaml@main
with:
script: 'ci:pack'
artifact-path: "dist/*/*.tgz"
artifact-name: pkg
update-release:
needs: build
uses: xc2/ghwf/.github/workflows/update-release.yaml@main
if: startsWith(github.ref, 'refs/tags/')
permissions:
contents: write
with:
cache-key: ${{ needs.build.outputs.cache-key }}
cache-path: ${{ needs.build.outputs.cache-path }}
npm-publish:
runs-on: ubuntu-latest
environment: npm-stable
needs: build
if: startsWith(github.ref, 'refs/tags/')
strategy:
matrix:
pkg:
- tarball: "dist/lib/*.tgz"
- tarball: "dist/bin/*.tgz"
permissions:
id-token: write
steps:
- uses: xc2/ghwf/pnpm-artifact/restore@main
with:
cache-key: ${{ needs.build.outputs.cache-key }}
cache-path: ${{ needs.build.outputs.cache-path }}
- uses: 109cafe/action-npr@main
with:
tarball: ${{ matrix.pkg.tarball }}
token: ${{ secrets.NPM_TOKEN }}
provenance: true