-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.02 KB
/
label-canary.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Label Canary
on:
workflow_dispatch:
inputs:
version:
description: 'Package version'
required: false
type: string
name:
description: 'Package name'
required: false
type: string
default: '@canary-109cafe/label'
jobs:
build:
uses: xc2/ghwf/.github/workflows/pnpm-artifact.yaml@main
with:
script: "pack:label"
artifact-path: "dist/label/*.tgz"
artifact-name: pkg
npm-publish:
runs-on: ubuntu-latest
environment: npm-canary
needs: build
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:
version: ${{ inputs.version }}
name: ${{ inputs.name }}
tarball: ${{ needs.build.outputs.cache-path }}
token: ${{ secrets.NPM_TOKEN }}
provenance: true