Merge pull request #12 from swsnr/dependabot/npm_and_yarn/typescript-… #111
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: "CI" | |
on: [push, pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- run: corepack enable | |
- run: yarn install | |
- run: make check | |
- run: make compile | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- name: Install gnome-shell and strip-nondeterminism | |
run: | | |
sudo apt-get update -qq | |
sudo apt-get install --no-install-recommends -qq -y gnome-shell strip-nondeterminism | |
- run: corepack enable | |
- run: yarn install | |
- run: make check-types | |
- run: make dist-repro | |
- run: b2sum *.zip > B2SUMS.txt | |
working-directory: dist | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: "dist/*" | |
create-release: | |
runs-on: ubuntu-latest | |
needs: build | |
# Only create a release on a tag | |
if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
path: dist | |
name: dist | |
- uses: softprops/action-gh-release@v1 | |
with: | |
files: "dist/*" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |