2.2.1 Remove Typescript from Dependencies #4
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: Publish Package to NPM | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '20.x' | |
registry-url: 'https://registry.npmjs.org' | |
- uses: oven-sh/setup-bun@v1 | |
- run: bun install | |
# update npm for provenance support | |
- run: npm --version && npm install -g npm && npm --version | |
# make sure this publish doesn’t break anything | |
- run: bun test | |
- run: bun run build | |
- name: publish | |
run: cd build && npm publish --provenance | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |