Skip to content

Commit fae4fea

Browse files
committed
chore: fix the release config
1 parent 9e51c8d commit fae4fea

File tree

7 files changed

+91
-86
lines changed

7 files changed

+91
-86
lines changed

.github/workflows/ci_cd.yml

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
secrets:
3636
BOT_ID: ${{ secrets.BOT_ID }}
3737
BOT_SK: ${{ secrets.BOT_SK }}
38+
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This is used because the GitHub NPM package registry doesn't support GitHub App tokens
3839

3940
python_uniffi_ci_cd:
4041
needs:
@@ -65,6 +66,7 @@ jobs:
6566
secrets:
6667
BOT_ID: ${{ secrets.BOT_ID }}
6768
BOT_SK: ${{ secrets.BOT_SK }}
69+
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This is used because the GitHub NPM package registry doesn't support GitHub App tokens
6870

6971
python_api_ci_cd:
7072
needs:

.github/workflows/typescript_api_client_ci_cd.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,15 @@ on:
1717
required: true
1818
BOT_SK:
1919
required: true
20+
NPM_TOKEN:
21+
required: true
2022

2123
permissions:
2224
contents: write # to make commits
2325
actions: write # to upload artifacts
2426
issues: write # to be able to comment on released issues
2527
pull-requests: write # to be able to comment on released pull requests
28+
packages: write # to be able to publish packages
2629

2730
env:
2831
PACKAGE_DIR: packages/typescript/${{ inputs.api }}
@@ -87,5 +90,5 @@ jobs:
8790
working-directory: ${{ env.PACKAGE_DIR }}
8891
env:
8992
GITHUB_TOKEN: ${{ steps.app_token.outputs.token }}
90-
NPM_TOKEN: ${{ steps.app_token.outputs.token }}
93+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
9194
run: bun semantic-release

.github/workflows/typescript_wasm_ci_cd.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,15 @@ on:
1717
required: true
1818
BOT_SK:
1919
required: true
20+
NPM_TOKEN:
21+
required: true
2022

2123
permissions:
2224
contents: write # to make commits
2325
actions: write # to upload artifacts
2426
issues: write # to be able to comment on released issues
2527
pull-requests: write # to be able to comment on released pull requests
28+
packages: write # to be able to publish packages
2629

2730
env:
2831
PACKAGE_DIR: packages/typescript/${{ inputs.crate }}
@@ -60,5 +63,5 @@ jobs:
6063
working-directory: ${{ env.PACKAGE_DIR }}
6164
env:
6265
GITHUB_TOKEN: ${{ steps.app_token.outputs.token }}
63-
NPM_TOKEN: ${{ steps.app_token.outputs.token }}
66+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
6467
run: bun semantic-release

package.json

-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,5 @@
1616
"semantic-release": "^24.2.3",
1717
"semantic-release-gha-output": "^1.1.1",
1818
"semantic-release-scope-filter": "1.0.0"
19-
},
20-
"publishConfig": {
21-
"registry": "https://npm.pkg.github.com"
2219
}
2320
}

packages/typescript/algokit_transact/bun.lock

+79-79
Large diffs are not rendered by default.

packages/typescript/algokit_transact/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "algokit_transact",
2+
"name": "@algorandfoundation/algokit-transact",
33
"version": "0.1.0",
44
"types": "./dist/index.d.ts",
55
"files": [

utils/semantic-release.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = {
1010
* @returns {import('semantic-release').GlobalConfig}
1111
*/
1212
getConfig: (opts) => {
13-
const { language, packageName, } = opts;
13+
const { language, packageName } = opts;
1414
const assets = opts.assets || [];
1515
const isNative = opts.isNative || false;
1616

0 commit comments

Comments
 (0)