refactor: replace path class with jsr:@david/path
#987
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: ci | ||
on: [push, pull_request] | ||
concurrency: | ||
group: '${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}' | ||
cancel-in-progress: true | ||
jobs: | ||
deno: | ||
name: dax-${{ matrix.os }} | ||
if: | | ||
github.event_name == 'push' || | ||
!startsWith(github.event.pull_request.head.label, 'dsherret:') | ||
permissions: | ||
contents: read | ||
id-token: write | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 30 | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macOS-latest, windows-latest] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install deno | ||
uses: denoland/setup-deno@v1 | ||
version: canary | ||
Check failure on line 29 in .github/workflows/ci.yml GitHub Actions / ciInvalid workflow file
|
||
- uses: dprint/[email protected] | ||
if: runner.os == 'Linux' | ||
- name: lint | ||
if: runner.os == 'Linux' | ||
run: deno lint | ||
- name: test | ||
run: deno test -A | ||
- name: Get tag version | ||
if: startsWith(github.ref, 'refs/tags/') && runner.os == 'Linux' | ||
id: get_tag_version | ||
run: echo TAG_VERSION=${GITHUB_REF/refs\/tags\//} >> $GITHUB_OUTPUT | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: npm build | ||
run: deno run -A ./scripts/build_npm.ts ${{steps.get_tag_version.outputs.TAG_VERSION}} | ||
- name: Publish to JSR on tag | ||
if: runner.os == 'Linux' | ||
run: deno run -A jsr:@david/[email protected] | ||
- name: npm publish | ||
if: startsWith(github.ref, 'refs/tags/') && runner.os == 'Linux' | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: cd npm && npm publish |