dx(publish): Add Automatic Publish with Provenance #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pipeline | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: oven-sh/setup-bun@v1 | |
- run: bun install | |
# update npm for provenance support | |
- run: npm --version && npm install -g npm && npm --version | |
- run: bun test | |
- run: bun run build | |
- name: dry-publish | |
run: cd build && npm publish --provenance --dry-run |