Skip to content

Commit 975addc

Browse files
committed
chore: migrate from circleci to github actions, migrate from static npm token to oidc trusted publisher
1 parent 2b0b656 commit 975addc

File tree

3 files changed

+49
-36
lines changed

3 files changed

+49
-36
lines changed

.circleci/config.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
name: publish
8+
9+
# Required for OIDC auth against npmjs.org, see https://docs.npmjs.com/trusted-publishers
10+
permissions:
11+
id-token: write
12+
contents: read
13+
14+
jobs:
15+
publish:
16+
name: Publish @spaceapi/validator-client on NPM registry
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Generate OpenAPI client
21+
run: |
22+
npm install @openapitools/openapi-generator-cli -g
23+
openapi-generator-cli batch \*.yml
24+
cd javascript
25+
npm install
26+
npm build
27+
- name: Publish package
28+
run: |
29+
cd javascript
30+
npm publish --access=public

.github/workflows/test.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
on: push
3+
4+
name: test
5+
6+
jobs:
7+
test:
8+
name: Publish @spaceapi/validator-client on NPM registry
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Generate OpenAPI client
13+
run: |
14+
npm install @openapitools/openapi-generator-cli -g
15+
openapi-generator-cli batch \*.yml
16+
cd javascript
17+
npm install
18+
npm build
19+

0 commit comments

Comments
 (0)