Skip to content

Commit 77ce72b

Browse files
author
devfive
committed
ci: migrate npm publishing to OIDC
1 parent f6678a3 commit 77ce72b

14 files changed

Lines changed: 22 additions & 3 deletions

File tree

.changepacks/config.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
"baseBranch": "main",
44
"latestPackage": null,
55
"publish": {
6-
"node": "bun publish"
6+
"node": "bun pm pack --quiet --filename .changepacks/publish.tgz && npm publish ../../.changepacks/publish.tgz"
7+
},
8+
"publishDryRun": {
9+
"node": "bun pm pack --quiet --filename .changepacks/publish.tgz && npm publish ../../.changepacks/publish.tgz --dry-run"
710
}
811
}

.github/workflows/publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,24 @@ jobs:
4646
# Actions > General > Workflow permissions for creating pull request
4747
# Create brench to create pull request
4848
contents: write
49+
id-token: write
4950
needs:
5051
- check
5152
steps:
5253
- uses: actions/checkout@v7
5354
- uses: oven-sh/setup-bun@v2
5455
with:
5556
bun-version: 1.3.12
57+
- name: Install Node.js
58+
uses: actions/setup-node@v7
59+
with:
60+
registry-url: "https://registry.npmjs.org"
61+
node-version: 24
5662
- run: bun i
5763
- run: bun run build
5864
- uses: changepacks/action@main
5965
id: changepacks
6066
with:
6167
publish: true
62-
env:
63-
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
6468
outputs:
6569
changepacks: ${{ steps.changepacks.outputs.changepacks }}

packages/core/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@devup-api/core",
33
"version": "0.1.20",
44
"license": "Apache-2.0",
5+
"repository": "https://github.com/dev-five-git/devup-api",
56
"type": "module",
67
"exports": {
78
".": {

packages/fetch/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@devup-api/fetch",
33
"version": "0.1.23",
44
"license": "Apache-2.0",
5+
"repository": "https://github.com/dev-five-git/devup-api",
56
"type": "module",
67
"exports": {
78
".": {

packages/generator/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@devup-api/generator",
33
"version": "0.1.26",
44
"license": "Apache-2.0",
5+
"repository": "https://github.com/dev-five-git/devup-api",
56
"type": "module",
67
"exports": {
78
".": {

packages/hookform/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@devup-api/hookform",
33
"version": "0.1.7",
44
"license": "Apache-2.0",
5+
"repository": "https://github.com/dev-five-git/devup-api",
56
"type": "module",
67
"exports": {
78
".": {

packages/next-plugin/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@devup-api/next-plugin",
33
"version": "0.1.15",
44
"license": "Apache-2.0",
5+
"repository": "https://github.com/dev-five-git/devup-api",
56
"type": "module",
67
"exports": {
78
".": {

packages/react-query/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@devup-api/react-query",
33
"version": "0.1.17",
44
"license": "Apache-2.0",
5+
"repository": "https://github.com/dev-five-git/devup-api",
56
"type": "module",
67
"exports": {
78
".": {

packages/rsbuild-plugin/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@devup-api/rsbuild-plugin",
33
"version": "0.1.15",
44
"license": "Apache-2.0",
5+
"repository": "https://github.com/dev-five-git/devup-api",
56
"type": "module",
67
"exports": {
78
".": {

packages/ui/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@devup-api/ui",
33
"version": "0.1.4",
44
"license": "Apache-2.0",
5+
"repository": "https://github.com/dev-five-git/devup-api",
56
"type": "module",
67
"exports": {
78
".": {

0 commit comments

Comments
 (0)