Skip to content

Commit a7e63e4

Browse files
committed
fix: release and publish
1 parent 3ac2c41 commit a7e63e4

File tree

5 files changed

+27
-35
lines changed

5 files changed

+27
-35
lines changed

.github/workflows/publish.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,24 @@ jobs:
1111
if: |-
1212
startsWith(github.event.head_commit.message, 'Release: v')
1313
name: 'Release'
14-
uses: 'google-github-actions/.github/.github/workflows/release.yml@v1' # ratchet:exclude
15-
# secrets must be explicitly passed to reusable workflows https://docs.github.com/en/enterprise-cloud@latest/actions/using-workflows/reusing-workflows#using-inputs-and-secrets-in-a-reusable-workflow
16-
secrets:
17-
ACTIONS_BOT_TOKEN: '${{ secrets.ACTIONS_BOT_TOKEN }}'
14+
uses: 'google-github-actions/.github/.github/workflows/release.yml@v0' # ratchet:exclude
15+
16+
publish:
17+
if: |-
18+
startsWith(github.event.head_commit.message, 'Release: v')
19+
runs-on: 'ubuntu-latest'
20+
needs: 'release'
21+
permissions:
22+
contents: 'read'
23+
id-token: 'write'
24+
packages: 'write'
25+
26+
steps:
27+
- name: 'Checkout'
28+
uses: 'actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871' # ratchet:actions/checkout@v4
29+
30+
- name: 'Publish'
31+
id: 'publish'
32+
uses: 'actions/publish-immutable-action@4b1aa5c1cde5fedc80d52746c9546cb5560e5f53' # ratchet:actions/publish-immutable-action@v0.0.3
33+
with:
34+
github-token: '${{ secrets.GITHUB_TOKEN }}'

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@google-github-actions/deploy-cloud-functions",
3-
"version": "3.0.6",
3+
"version": "3.0.5",
44
"description": "Deploy a Cloud Function",
55
"main": "dist/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)