Merge pull request #168 from Stackla/enable-scroll-widget-extension #538
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 | |
permissions: | |
contents: write | |
packages: read | |
actions: write | |
id-token: write | |
env: | |
GH_TOKEN: ${{ github.token }} | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- labeled | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Build and Test | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.STACKLA_BOT_GITHUB_TOKEN}} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 23.6.0 | |
- name: Install | |
run: npm install | |
- name: Build | |
run: npm run build | |
- name: Lint | |
run: npm run lint | |
- name: Typecheck | |
run: npm run typecheck | |
- name: Test | |
run: npm test | |
trigger_deploy: | |
if: github.ref == 'refs/heads/master' | |
needs: [build] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: trigger deploy | |
run: gh workflow run release --ref master -F environment=staging |