v0.3.0 #1
Workflow file for this run
This file contains hidden or 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 to npm | |
| on: | |
| release: | |
| types: [published] | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| publish: | |
| name: Publish | |
| if: github.repository == 'resolute/std' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Deno | |
| uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: latest | |
| - name: Set up Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "24" | |
| registry-url: https://registry.npmjs.org | |
| package-manager-cache: false | |
| - name: Update npm | |
| run: npm install -g npm@latest | |
| - name: Verify release tag matches deno.json | |
| shell: bash | |
| run: | | |
| VERSION="$(node -p "require('./deno.json').version")" | |
| test "${GITHUB_REF_NAME}" = "v${VERSION}" | |
| - name: Pack release tarball | |
| run: deno task pack:release | |
| - name: Publish npm package | |
| run: npm publish ./*.tgz --access public |