Update dependency typescript to v5 #2257
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
name: Continuous Integration | |
on: | |
push: | |
pull_request: | |
release: | |
types: | |
[published] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-18.04, windows-2019, macos-10.15] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '12.x' | |
registry-url: 'https://registry.npmjs.org' | |
- run: npm ci | |
- run: npm run-script lint | |
- run: npm run-script buildTypeScript | |
- run: sudo apt-get install xvfb | |
if: matrix.os == 'ubuntu-18.04' | |
- run: xvfb-run npm run-script buildNyc | |
if: matrix.os == 'ubuntu-18.04' | |
- run: npm run-script buildNyc | |
if: matrix.os != 'ubuntu-18.04' | |
release: | |
if: github.event_name == 'release' | |
needs: test | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '12.x' | |
registry-url: 'https://registry.npmjs.org' | |
- run: sed -i s/"999.999.999"/"${GITHUB_REF##*/}"/ package.json package-lock.json | |
- run: npm ci | |
- run: npm run-script buildTypeScript | |
- run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} |