Skip to content

Bump actions/checkout from 3 to 4 #46

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #46

Workflow file for this run

name: pipeline
on: [push, pull_request]
jobs:
pipeline:
name: pipeline
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: formatting
run: deno fmt --check
- name: linting
run: deno lint
- name: test
run: deno test --doc
- name: dnt
run: deno run -A ./build_npm.ts
publish:
name: publish
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
needs: pipeline
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- uses: actions/setup-node@v3
with:
node-version: latest
registry-url: 'https://registry.npmjs.org'
- name: Get tag version
id: get_tag_version
run: echo ::set-output name=TAG_VERSION::${GITHUB_REF/refs\/tags\//}
- name: npm build
run: deno run -A ./build_npm.ts ${{steps.get_tag_version.outputs.TAG_VERSION}}
- name: publish NPM
run: cd npm && npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: create release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
body_path: CHANGELOG.md