Skip to content

Commit 7a8bb14

Browse files
committed
fix(ci): enabling releases
1 parent 52ce92e commit 7a8bb14

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

.github/actions/build-client/action.yml

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ inputs:
88
showdev:
99
description: Including dev tools
1010
default: ""
11+
github-token:
12+
description: Github token
13+
required: true
1114

1215
runs:
1316
using: 'composite'
@@ -17,6 +20,8 @@ runs:
1720
- name: Generate release, if needed
1821
shell: bash
1922
run: HUSKY=0 pnpm dlx semantic-release
23+
env:
24+
GITHUB_TOKEN: ${{ inputs.github-token }}
2025
- name: Check for new release
2126
shell: bash
2227
id: release-name

.github/workflows/build-app.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ on:
1313

1414

1515
permissions:
16-
contents: read # This is required for actions/checkout
16+
contents: write # This is required for actions/checkout and write to be able to write releases
17+
pull-requests: write # to be able to comment on released pull requests
1718
id-token: write # Access the Github JWT for AWS access
1819
deployments: write
1920

@@ -28,6 +29,8 @@ jobs:
2829
fetch-depth: 0 # allows us to git parse tags for release
2930
- name: Build App
3031
uses: ./.github/actions/build-client
32+
with:
33+
github-token: ${{ secrets.GITHUB_TOKEN }}
3134
- name: Build Web Client
3235
uses: pocket/pocket-monorepo/.github/actions/containerize@main
3336
with:
@@ -62,6 +65,8 @@ jobs:
6265
fetch-depth: 0 # allows us to git parse tags for release
6366
- name: Build App
6467
uses: ./.github/actions/build-client
68+
with:
69+
github-token: ${{ secrets.GITHUB_TOKEN }}
6570
# Get the AWS credentials
6671
- name: AWS Credentials
6772
uses: aws-actions/configure-aws-credentials@v4
@@ -125,6 +130,7 @@ jobs:
125130
with:
126131
prefix: "https://assets.getpocket.com/web-client"
127132
showdev: ""
133+
github-token: ${{ secrets.GITHUB_TOKEN }}
128134
# Get the AWS credentials
129135
- name: AWS Credentials
130136
uses: aws-actions/configure-aws-credentials@v4

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"plugins": [
4444
"@semantic-release/commit-analyzer",
4545
"@semantic-release/release-notes-generator",
46-
"@semantic-release/changelog",
46+
"@semantic-release/github",
4747
"@semantic-release/git",
4848
[
4949
"@semantic-release/exec",
@@ -93,4 +93,4 @@
9393
"engines"
9494
]
9595
}
96-
}
96+
}

0 commit comments

Comments
 (0)