Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
benmerckx committed Aug 29, 2024
1 parent f918657 commit 4071336
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 8 deletions.
32 changes: 26 additions & 6 deletions .github/workflows/jsr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,29 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun i --frozen-lockfile
- name: Build package
run: bun run build
- name: Publish package
run: bunx jsr publish --config jsr.json
- run: bun i --frozen-lockfile
- run: bun test
- run: bunx jsr publish --config jsr.json --dry-run
publishNPM:
runs-on: ubuntu-latest
needs: ci
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- run: bun install --frozen-lockfile
- run: |
npm config set //registry.npmjs.org/:_authToken ${{secrets.NPM_AUTH_TOKEN}}
npm publish
publishJSR:
runs-on: ubuntu-latest
needs: ci
permissions:
contents: read
id-token: write
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- run: bun install --frozen-lockfile
- run: bunx jsr publish --config jsr.json
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alinea/suite",
"version": "0.3.1",
"version": "0.4.0",
"license": "MIT",
"exports": "./jsr.ts",
"publish": {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"version": "0.3.1",
"name": "@alinea/suite",
"version": "0.4.0",
"license": "MIT",
"types": "./src/suite.d.ts",
"type": "module",
"files": ["./dist", "./src"],
Expand Down

0 comments on commit 4071336

Please sign in to comment.