Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
phaux committed Jan 1, 2024
1 parent 703a06a commit 826020f
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 18 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/codegen-api.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
name: Generate API types

on: []
on:
schedule:
- cron: "0 0 * * 1"

jobs:
codegen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
with:
node-version: latest
- run: npm ci
- run: npm run codegen
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Publish Package to NPM

on:
release:
types: [published]
types:
- published

jobs:
publish:
Expand All @@ -11,9 +10,9 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20
node-version: latest
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
22 changes: 11 additions & 11 deletions .github/workflows/npm-test.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: Node.js CI

on:
push:
branches: [ main ]
branches:
- main
pull_request:
branches: [ main ]
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: latest
cache: npm
- run: npm ci
- run: npm test
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: latest
cache: npm
- run: npm ci
- run: npm test
17 changes: 17 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
release-type: node

0 comments on commit 826020f

Please sign in to comment.