Skip to content

Commit 28c0535

Browse files
committed
chore: enhance publication workflow
1 parent 2809f3b commit 28c0535

File tree

6 files changed

+211
-74
lines changed

6 files changed

+211
-74
lines changed

.github/workflows/packages.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
name: Publish packages
22

33
on:
4-
pull_request:
5-
types:
6-
- closed
4+
push:
75
branches:
86
- main
97

8+
permissions:
9+
id-token: write
10+
contents: write
11+
packages: write
12+
pages: write
13+
1014
jobs:
1115
publish-packages:
12-
if: github.event.pull_request.merged == true && github.head_ref == 'changeset-release/main'
1316
name: Publish packages
17+
if: contains(github.event.head_commit.message, 'publish new release')
1418
runs-on: ubuntu-latest
1519
steps:
1620
- name: Checkout
@@ -41,6 +45,7 @@ jobs:
4145
publish: pnpm tag
4246
env:
4347
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
48+
4449
outputs:
4550
ref: ${{ github.ref }}
4651
published: ${{ steps.changesets.outputs.published }}

.github/workflows/registries.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ on:
1010
permissions:
1111
id-token: write
1212
contents: read
13+
packages: write
1314

1415
jobs:
1516
build-and-deploy:
1617
name: Build and deploy packages
1718
runs-on: ubuntu-latest
19+
1820
steps:
1921
- name: Checkout repo
2022
uses: actions/checkout@v6
@@ -36,6 +38,20 @@ jobs:
3638
run: pnpm install --frozen-lockfile
3739

3840
- name: Publish packages to NPM
41+
run: pnpm publish -r --access public --no-git-checks --provenance
42+
43+
- name: Configure node for Github registry
44+
uses: actions/setup-node@v6
45+
with:
46+
node-version: 24
47+
registry-url: 'https://npm.pkg.github.com'
48+
scope: '@openscript-ch'
49+
50+
- name: Authenticate with the GitHub Package Registry
51+
run:
52+
echo "//npm.pkg.github.com:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
53+
54+
- name: Publish package on Github NPM registry
3955
run: pnpm publish -r --no-git-checks
4056
env:
41-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
57+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@hideoo/eslint-config": "^4.1.1",
2222
"@hideoo/prettier-config": "^2.0.1",
2323
"@hideoo/tsconfig": "^2.0.3",
24-
"@types/node": "^25.0.1",
24+
"@types/node": "^25.0.2",
2525
"astro": "^5.16.5",
2626
"eslint": "^9.39.2",
2727
"prettier": "^3.7.4",
@@ -46,7 +46,7 @@
4646
"homepage": "https://github.com/openscript-ch/starlight-theme",
4747
"repository": {
4848
"type": "git",
49-
"url": "https://github.com/openscript-ch/starlight-theme.git"
49+
"url": "https://github.com/openscript-ch/starlight-theme"
5050
},
5151
"bugs": "https://github.com/openscript-ch/starlight-theme/issues"
5252
}

packages/starlight-theme-openscript/CHANGELOG.md

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,121 @@
11
# @openscript-ch/starlight-theme
22

3+
## 0.1.32
4+
5+
### Patch Changes
6+
7+
- [`0a40837`](https://github.com/openscript-ch/starlight-theme/commit/0a40837a4be5980d2b0c982a84c188836841bacb) Thanks [@openscript](https://github.com/openscript)! - Clean up permissions
8+
9+
## 0.1.31
10+
11+
### Patch Changes
12+
13+
- [`39b31d5`](https://github.com/openscript-ch/starlight-theme/commit/39b31d5c18e8282025be73b260e0dfb044e6ca6c) Thanks [@openscript](https://github.com/openscript)! - Fix packages workflow
14+
15+
## 0.1.30
16+
17+
### Patch Changes
18+
19+
- [`c766417`](https://github.com/openscript-ch/starlight-theme/commit/c7664178c37b25641764dca63cb9b8220315cd7b) Thanks [@openscript](https://github.com/openscript)! - fix packages workflow
20+
21+
## 0.1.29
22+
23+
### Patch Changes
24+
25+
- [`b9efcb5`](https://github.com/openscript-ch/starlight-theme/commit/b9efcb518ec3d3b8872bbedf85e03f38cbbf42ba) Thanks [@openscript](https://github.com/openscript)! - push trigger
26+
27+
## 0.1.28
28+
29+
### Patch Changes
30+
31+
- [`cdca9d1`](https://github.com/openscript-ch/starlight-theme/commit/cdca9d11122162489c95ca4b51523b4bd9e7ad7b) Thanks [@openscript](https://github.com/openscript)! - Try out push trigger
32+
33+
## 0.1.27
34+
35+
### Patch Changes
36+
37+
- [`8cf8496`](https://github.com/openscript-ch/starlight-theme/commit/8cf849631d490cc54851a21bb20a7beafc4a036f) Thanks [@openscript](https://github.com/openscript)! - Change workflow
38+
39+
## 0.1.26
40+
41+
### Patch Changes
42+
43+
- [`e981987`](https://github.com/openscript-ch/starlight-theme/commit/e981987cc86e8c9c367ef4370040a229275f7e44) Thanks [@openscript](https://github.com/openscript)! - Update npm
44+
45+
## 0.1.25
46+
47+
### Patch Changes
48+
49+
- [`40f2c24`](https://github.com/openscript-ch/starlight-theme/commit/40f2c245ebfebd6228beb60d5fedeeb551de0d7d) Thanks [@openscript](https://github.com/openscript)! - Adjust publication
50+
51+
## 0.1.24
52+
53+
### Patch Changes
54+
55+
- [`02bc10a`](https://github.com/openscript-ch/starlight-theme/commit/02bc10ab0a78256a0f9fac6ffc349b9239334777) Thanks [@openscript](https://github.com/openscript)! - Adjust publication
56+
57+
## 0.1.23
58+
59+
### Patch Changes
60+
61+
- [`ba14891`](https://github.com/openscript-ch/starlight-theme/commit/ba14891993fa52239599c956b9fcfaad9fff43a0) Thanks [@openscript](https://github.com/openscript)! - Enhance package.json
62+
63+
## 0.1.22
64+
65+
### Patch Changes
66+
67+
- [`941fdb3`](https://github.com/openscript-ch/starlight-theme/commit/941fdb3b9b30ba4adb386bbab0d091e8ea8fa262) Thanks [@openscript](https://github.com/openscript)! - Enhance permissions
68+
69+
## 0.1.21
70+
71+
### Patch Changes
72+
73+
- [`dcd0cef`](https://github.com/openscript-ch/starlight-theme/commit/dcd0cef581d080a1c2f20ed343582f7757d155d5) Thanks [@openscript](https://github.com/openscript)! - Adjust permissions for publication
74+
75+
## 0.1.20
76+
77+
### Patch Changes
78+
79+
- [`6476e17`](https://github.com/openscript-ch/starlight-theme/commit/6476e173f66e5cac01c7cdd18cf591ca9c67ba2e) Thanks [@openscript](https://github.com/openscript)! - Fix publication
80+
81+
## 0.1.19
82+
83+
### Patch Changes
84+
85+
- [`9d8d7f1`](https://github.com/openscript-ch/starlight-theme/commit/9d8d7f1402004f3d67d9ca96b8eb5fb226266de5) Thanks [@openscript](https://github.com/openscript)! - Set npm environment
86+
87+
## 0.1.18
88+
89+
### Patch Changes
90+
91+
- [`bc3047a`](https://github.com/openscript-ch/starlight-theme/commit/bc3047a66b55a7e35432e4d5312686765dfa97a8) Thanks [@openscript](https://github.com/openscript)! - Enhance workflow permissions
92+
93+
## 0.1.17
94+
95+
### Patch Changes
96+
97+
- [`6f3f295`](https://github.com/openscript-ch/starlight-theme/commit/6f3f295a0a435c8a4a8b872ebda01270a3056a2b) Thanks [@openscript](https://github.com/openscript)! - Fix publication
98+
99+
## 0.1.16
100+
101+
### Patch Changes
102+
103+
- [`792c3d6`](https://github.com/openscript-ch/starlight-theme/commit/792c3d6730bd2df22d5151bbacdd83776c571e99) Thanks [@openscript](https://github.com/openscript)! - Fix publication using provenance
104+
105+
## 0.1.15
106+
107+
### Patch Changes
108+
109+
- [`0093a1b`](https://github.com/openscript-ch/starlight-theme/commit/0093a1b353c7031b3b1b04c23bbc51d9d3a24351) Thanks [@openscript](https://github.com/openscript)! - Adapt new environment protection rules
110+
111+
## 0.1.14
112+
113+
### Patch Changes
114+
115+
- [`4a8b8b4`](https://github.com/openscript-ch/starlight-theme/commit/4a8b8b4f3a54ba054b6f54487ae06cf0d2fab0bc) Thanks [@openscript](https://github.com/openscript)! - Enhance registries workflow for publication
116+
117+
- [`4a8b8b4`](https://github.com/openscript-ch/starlight-theme/commit/4a8b8b4f3a54ba054b6f54487ae06cf0d2fab0bc) Thanks [@openscript](https://github.com/openscript)! - Update dependencies
118+
3119
## 0.1.13
4120

5121
### Patch Changes

packages/starlight-theme-openscript/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openscript-ch/starlight-theme",
3-
"version": "0.1.13",
3+
"version": "0.1.32",
44
"license": "MIT",
55
"description": "Starlight theme of openscript Ltd.",
66
"author": "openscript GmbH",
@@ -47,7 +47,7 @@
4747
"homepage": "https://github.com/openscript-ch/starlight-theme",
4848
"repository": {
4949
"type": "git",
50-
"url": "https://github.com/openscript-ch/starlight-theme.git",
50+
"url": "https://github.com/openscript-ch/starlight-theme",
5151
"directory": "packages/starlight-theme-openscript"
5252
},
5353
"bugs": "https://github.com/openscript-ch/starlight-theme/issues"

0 commit comments

Comments
 (0)