-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (40 loc) · 1.17 KB
/
dummy-release.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
41
42
43
name: Dummy Release
on:
workflow_dispatch:
release:
types:
- published
jobs:
build:
uses: xc2/ghwf/.github/workflows/pnpm-artifact.yaml@main
if: ${{ startsWith(github.ref, 'refs/tags/dummy@') }}
with:
script: "pack:dummy"
artifact-path: "dist/dummy-spec/*.tgz"
artifact-name: pkg
update-release:
needs: build
uses: xc2/ghwf/.github/workflows/update-release.yaml@main
if: ${{ startsWith(github.ref, 'refs/tags/dummy@') }}
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/dummy@') }}
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: ${{ needs.build.outputs.cache-path }}
token: ${{ secrets.NPM_TOKEN }}
provenance: true