Skip to content

Commit 0c038af

Browse files
committed
fix: test it
1 parent dde4a07 commit 0c038af

File tree

2 files changed

+28
-31
lines changed

2 files changed

+28
-31
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
name: Publish package to NPM
44

55
on:
6-
workflow_dispatch:
6+
workflow_call:
77

88
permissions:
99
id-token: write # Required for OIDC
@@ -32,7 +32,7 @@ jobs:
3232
with:
3333
node-version-file: .node-version
3434
registry-url: https://registry.npmjs.org/
35-
# cache: pnpm
35+
cache: pnpm
3636

3737
- name: Restore cache
3838
id: dependencies-cache

.github/workflows/release.yml

Lines changed: 26 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -12,36 +12,33 @@ permissions:
1212
name: release-please
1313

1414
jobs:
15-
# release:
16-
# runs-on: ubuntu-latest
17-
# outputs:
18-
# release-published: ${{ steps.release.outputs.release_created }}
19-
# steps:
20-
# - name: Release please
21-
# uses: googleapis/release-please-action@v4
22-
# id: release
23-
# with:
24-
# # this assumes that you have created a personal access token
25-
# # (PAT) and configured it as a GitHub action secret named
26-
# # `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
27-
# token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
28-
# # this is a built-in strategy in release-please, see "Action Inputs"
29-
# # for more options
30-
# release-type: node
31-
# # create a release from a path other than the repository's root
32-
# # path: pkg/cmd
33-
# # The short ref name of the branch or tag that triggered
34-
# # the workflow run. For example, `main` or `1.x`
35-
# # target-branch: ${{ github.ref_name }}
15+
release:
16+
runs-on: ubuntu-latest
17+
outputs:
18+
release-published: ${{ steps.release.outputs.release_created }}
19+
steps:
20+
- name: Release please
21+
uses: googleapis/release-please-action@v4
22+
id: release
23+
with:
24+
# this assumes that you have created a personal access token
25+
# (PAT) and configured it as a GitHub action secret named
26+
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
27+
token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
28+
# this is a built-in strategy in release-please, see "Action Inputs"
29+
# for more options
30+
release-type: node
31+
# create a release from a path other than the repository's root
32+
# path: pkg/cmd
33+
# The short ref name of the branch or tag that triggered
34+
# the workflow run. For example, `main` or `1.x`
35+
# target-branch: ${{ github.ref_name }}
3636

37-
# # If true, do not attempt to create releases.
38-
# # This is useful if splitting release tagging from PR creation.
39-
# # skip-github-release: true
37+
# If true, do not attempt to create releases.
38+
# This is useful if splitting release tagging from PR creation.
39+
# skip-github-release: true
4040

4141
publish:
42-
# if: needs.release.outputs.release-published
43-
permissions:
44-
id-token: write # Required for OIDC
45-
contents: read
46-
# needs: release
42+
if: needs.release.outputs.release-published
43+
needs: release
4744
uses: ./.github/workflows/publish.yml

0 commit comments

Comments
 (0)