Skip to content

Commit

Permalink
ci: split out into steps
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Dec 16, 2024
1 parent ef31329 commit 71f49de
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ jobs:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2

- name: Run unit tests
run: |
bun install
bun prepack
- name: Install dependencies
run: bun install

- name: Build package
run: bun run prepack

- name: Trigger deploy
if: github.ref == 'refs/heads/master'
env:
deploy_url: ${{ secrets.RENDER_DEPLOY_HOOK_URL }}
run: |
curl "$deploy_url"
run: curl "$deploy_url"
15 changes: 8 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ jobs:
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"

- name: Install dependencies
run: bun install

- name: Build package
run: bun run prepack

- name: Publish package
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

# Currently, only npm supports publishing packages with provenance
# https://docs.npmjs.com/generating-provenance-statements
run: |
bun install
bun prepack
npm publish --provenance --access public
run: npm publish --provenance --access public

0 comments on commit 71f49de

Please sign in to comment.