Update dependency eslint to v9 #350
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
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Build and Deploy 🕛 | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: github-actions | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/[email protected] | |
- name: Pnpm 🧱 | |
uses: pnpm/[email protected] | |
- name: Node.js 🧰 | |
uses: actions/[email protected] | |
with: | |
node-version: latest | |
cache: pnpm | |
- name: Install && Build 🔩 | |
run: | | |
pnpm i --frozen-lockfile | |
pnpm build | |
- name: Publish 📰 | |
uses: JS-DevTools/[email protected] | |
if: github.ref_name == 'main' | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
strategy: upgrade |