Skip to main content
Module

x/html_rewriter/.github/workflows/tags.yml

WASM-based implementation of Cloudflare's HTML Rewriter for use in Deno, browsers, etc.
Go to Latest
File
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
name: Node.js Package
on: push: tags: - v*
jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: denoland/setup-deno@v1 with: deno-version: v1.x - run: deno test --allow-read ./test
publish-npm: needs: test runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: denoland/setup-deno@v1 with: deno-version: v1.x - uses: actions/setup-node@v1 with: node-version: 14 registry-url: https://registry.npmjs.org/ - uses: pnpm/action-setup@v2 with: version: 6 run_install: false - run: deno run -A ./scripts/build_npm.ts - run: cd ./npm && npm publish env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}