Use node20 on github actions (#389) #100
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: Deploy Beta | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy_beta_version: | |
name: Deploy beta version | |
if: ${{ !contains(github.event.head_commit.message, '[skip-beta]') && !contains(github.event.head_commit.message, '[bump-version]') }} | |
runs-on: ubuntu-22.04 | |
env: | |
TRAKT_CLIENT_ID: ${{ secrets.TRAKT_CLIENT_ID }} | |
TRAKT_CLIENT_SECRET: ${{ secrets.TRAKT_CLIENT_SECRET }} | |
ROLLBAR_TOKEN: ${{ secrets.ROLLBAR_TOKEN }} | |
TMDB_API_KEY: ${{ secrets.TMDB_API_KEY }} | |
CHROME_EXTENSION_ID: ${{ secrets.CHROME_EXTENSION_ID }} | |
CHROME_EXTENSION_KEY: ${{ secrets.CHROME_EXTENSION_KEY }} | |
FIREFOX_EXTENSION_ID: ${{ secrets.FIREFOX_EXTENSION_ID }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 7 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build | |
run: pnpm run build | |
- name: Deploy version | |
uses: ./.github/actions/deploy-beta | |
with: | |
trakt-tools-bot-token: '${{ secrets.TRAKT_TOOLS_BOT_TOKEN }}' |