Skip to content

Commit 66e177e

Browse files
authored
fix(workflows): ZMSA-46: update workflows (#34)
1 parent 115395e commit 66e177e

3 files changed

Lines changed: 33 additions & 13 deletions

File tree

.github/workflows/release.yaml

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,31 @@ permissions:
1010

1111
name: release
1212
jobs:
13-
release-please:
13+
release_please:
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
id-token: write
18+
1419
runs-on: ubuntu-latest
20+
outputs:
21+
release_created: ${{ steps.release.outputs.release_created }}
1522
steps:
16-
- uses: google-github-actions/release-please-action@v4
23+
- uses: googleapis/release-please-action@v4
1724
id: release
18-
with:
19-
release-type: node
20-
# The logic below handles the npm publication:
21-
- uses: actions/checkout@v5
22-
# these if statements ensure that a publication only occurs when
23-
# a new release is created:
24-
if: ${{ steps.release.outputs.release_created }}
25-
- uses: actions/setup-node@v5
25+
26+
publish_npm:
27+
needs: release_please
28+
if: ${{ needs.release_please.outputs.release_created }}
29+
runs-on: ubuntu-latest
30+
permissions:
31+
contents: read
32+
id-token: write
33+
steps:
34+
- uses: actions/checkout@v6
35+
- uses: actions/setup-node@v6
2636
with:
2737
node-version: 24
2838
registry-url: 'https://registry.npmjs.org'
29-
if: ${{ steps.release.outputs.release_created }}
3039
- run: npm ci
31-
if: ${{ steps.release.outputs.release_created }}
3240
- run: npm publish --provenance --access public
33-
if: ${{ steps.release.outputs.release_created }}

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "2.4.2"
3+
}

release-please-config.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"packages": {
3+
".": {
4+
"release-type": "node",
5+
"package-name": "@zone-eu/mobileconfig",
6+
"pull-request-title-pattern": "chore${scope}: release ${version} [skip-ci]",
7+
"include-component-in-tag": false
8+
}
9+
}
10+
}

0 commit comments

Comments
 (0)