Skip to content

Rewrite to use CompressionStream #13

Rewrite to use CompressionStream

Rewrite to use CompressionStream #13

Workflow file for this run

name: Test
on: [ push, pull_request, workflow_dispatch ]
jobs:
Coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm install && npm i -g c8
- run: c8 -r lcov -r text npm test
- run: node --import=@litejs/cli/test.js test/run.mjs
- run: npm run lint
- uses: coverallsapp/github-action@master
name: Upload to coveralls.io
with:
github-token: ${{ github.token }}
Analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: github/codeql-action/init@v2
with:
languages: javascript
- uses: github/codeql-action/analyze@v2
with:
category: /language:javascript
Release:
if: startsWith(github.ref, 'refs/tags/v')
needs: [Analyze, Coverage]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- uses: actions/setup-node@v4
with:
registry-url: https://registry.npmjs.org/
- run: |
gh release create $TAG --title $TAG --notes "$(git tag -l --format='%(subject)%0a%0a%(body)' $TAG)"
gh run list --json databaseId -q '.[20:]|.[].databaseId' --limit 100 | xargs -I{} gh run delete "{}"
[[ "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] && echo "PUBLISH=true" >> $GITHUB_ENV
env:
GH_TOKEN: ${{ github.token }}
TAG: ${{ github.ref_name }}
- run: npm publish --access public
if: env.PUBLISH == 'true'
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}