Merge pull request #16 from ykiu/ts-5.1 #97
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
# Runs various checks against any new code. | |
# Creates a GitHub release named nightly, for the sake of testing in external projects. | |
name: Check | |
on: | |
push: | |
branches: | |
- '*' | |
paths-ignore: | |
- '*.md' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
node-version: 18 | |
# 'registry-url' is required for 'npm publish' | |
registry-url: 'https://registry.npmjs.org' | |
- run: npm ci | |
- run: npm run check | |
- run: npm run build | |
- run: npm run schema && git diff --exit-code tests/schema.ts | |
- run: npm test | |
- run: npm pack | |
- run: git tag -f nightly | |
- run: git push -f origin nightly | |
- uses: ncipollo/[email protected] | |
with: | |
artifacts: '*.tgz' | |
token: ${{ secrets.GITHUB_TOKEN }} | |
allowUpdates: true | |
name: nightly | |
tag: nightly |