Skip to content

Commit 298e0f7

Browse files
chore: oidc based package publishing (#227)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Faris Ansari <netchampfaris@users.noreply.github.com>
1 parent ab03ea2 commit 298e0f7

File tree

4 files changed

+2142
-2892
lines changed

4 files changed

+2142
-2892
lines changed

.github/workflows/test-and-release.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,38 @@ on:
33
push:
44
branches:
55
- master
6+
7+
permissions:
8+
contents: write
9+
issues: write
10+
pull-requests: write
11+
id-token: write
12+
613
jobs:
714
test-and-release:
815
runs-on: ubuntu-latest
916
steps:
10-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v6
22+
with:
23+
node-version: 24
24+
cache: 'yarn'
25+
- name: Install dependencies
26+
run: yarn install --frozen-lockfile
1127
- name: Lint, build and test
12-
uses: cypress-io/github-action@v2
28+
uses: cypress-io/github-action@v6
1329
with:
1430
build: yarn lint-and-build
1531
start: yarn cy:server
32+
install: false
1633
record: true
1734
env:
1835
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
1936
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2037
- name: Release
2138
env:
22-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2339
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2440
run: yarn semantic-release

.github/workflows/test-pull-request.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@ jobs:
44
test-pull-request:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v2
7+
- uses: actions/checkout@v4
8+
- name: Setup Node.js
9+
uses: actions/setup-node@v6
10+
with:
11+
node-version: 24
12+
cache: 'yarn'
813
- name: Lint, build and test
9-
uses: cypress-io/github-action@v2
14+
uses: cypress-io/github-action@v6
1015
with:
1116
build: yarn lint-and-build
1217
start: yarn cy:server

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"rollup-plugin-node-resolve": "^3.0.3",
4646
"rollup-plugin-postcss": "^1.2.8",
4747
"rollup-plugin-uglify-es": "^0.0.1",
48-
"semantic-release": "^17.1.1",
48+
"semantic-release": "^25.0.3",
4949
"start-server-and-test": "^1.4.1",
5050
"travis-deploy-once": "^5.0.1"
5151
},
@@ -75,4 +75,4 @@
7575
"path": "cz-conventional-changelog"
7676
}
7777
}
78-
}
78+
}

0 commit comments

Comments
 (0)