44 Coverage :
55 runs-on : ubuntu-latest
66 steps :
7- - uses : actions/checkout@v4
8- - uses : actions/setup-node@v4
7+ - uses : actions/checkout@v5
8+ - uses : actions/setup-node@v5
99 - run : npm install --no-audit && npm install -g uglify-js
1010 - run : npm audit --audit-level=low
1111 - run : npx c8 -r lcovonly -r text npm test
@@ -14,43 +14,18 @@ jobs:
1414 name : Upload to coveralls.io
1515 with :
1616 github-token : ${{ github.token }}
17- Analyze :
17+ Bun :
1818 runs-on : ubuntu-latest
1919 steps :
20- - uses : actions/checkout@v4
21- - uses : github/codeql-action/init@v3
22- with :
23- languages : javascript
24- - uses : github/codeql-action/analyze@v3
25- with :
26- category : /language:javascript
20+ - uses : actions/checkout@v5
21+ - uses : oven-sh/setup-bun@v2
22+ - run : bun i && bun i -g uglify-js
23+ - run : bun x npm t
24+ Analyze :
25+ uses : litejs/.github/.github/workflows/analyze.yml@main
2726 Release :
2827 if : startsWith(github.ref, 'refs/tags/v')
2928 needs : [Analyze, Coverage]
30- runs-on : ubuntu-latest
31- steps :
32- - uses : actions/checkout@v4
33- with :
34- ref : ${{ github.ref }}
35- - run : |
36- echo '${{ vars.RELEASE_SIGNERS }}' > ./allowed_signers
37- git config gpg.ssh.allowedSignersFile ./allowed_signers
38- git verify-tag -v ${{ github.ref_name }}
39- name: Verify release tag signature
40- - uses : actions/setup-node@v4
41- with :
42- registry-url : https://registry.npmjs.org/
43- - run : |
44- MSG=$(git log -1 --no-show-signature --format=%B $TAG)
45- TITLE=$(echo "$MSG" | head -n 1)
46- NOTES=$(echo "$MSG" | tail -n +2)
47- gh release create $TAG --title "$TITLE" --notes "$NOTES"
48- gh run list --json databaseId -q '.[20:]|.[].databaseId' --limit 100 | xargs -I{} gh run delete "{}"
49- [[ "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] && echo "PUBLISH=latest" >> $GITHUB_ENV || echo "PUBLISH=next" >> $GITHUB_ENV
50- env:
51- GH_TOKEN: ${{ github.token }}
52- TAG: ${{ github.ref_name }}
53- - run : npm publish --access public --tag $PUBLISH
54- env :
55- NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
29+ uses : litejs/.github/.github/workflows/release.yml@main
30+ secrets : inherit
5631
0 commit comments