chore(deps): bump @types/node from 20.12.5 to 20.12.7 #2795
Workflow file for this run
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: Onboarding | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- package.json | |
- onboarding/** | |
branches: | |
- main | |
push: | |
paths: | |
- onboarding/** | |
branches: | |
- main | |
jobs: | |
build: | |
if: github.event_name != 'push' | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: npm auth | |
run: | | |
npm config set @kashw2:registry https://npm.pkg.github.com/ | |
npm config set //npm.pkg.github.com/:_authToken=${{ secrets.GH_TOKEN }} | |
npm config set registry https://registry.npmjs.org/ | |
- name: install globals | |
run: npm install -g lerna | |
- name: npm install | |
run: | | |
lerna exec npm ci --scope=fleet-of-the-faithful-knights -- --force | |
lerna exec npm ci --scope=@ffk/onboarding -- --force | |
- name: build onboarding | |
run: lerna run build:dev --scope=@ffk/onboarding | |
deploy: | |
if: github.event_name != 'pull_request' | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: npm auth | |
run: | | |
npm config set @kashw2:registry https://npm.pkg.github.com/ | |
npm config set //npm.pkg.github.com/:_authToken=${{ secrets.GH_TOKEN }} | |
npm config set registry https://registry.npmjs.org/ | |
- name: install globals | |
run: npm install -g lerna | |
- name: npm install | |
run: | | |
lerna exec npm ci --scope=fleet-of-the-faithful-knights -- --force | |
lerna exec npm ci --scope=@ffk/onboarding -- --force | |
- name: build onboarding | |
run: lerna run build:dev --scope=@ffk/onboarding | |
- name: deploy | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GH_TOKEN }} | |
- run: | | |
docker build -t ghcr.io/kashw2/onboarding.faithfulknights.com:${{ github.sha }} -t ghcr.io/kashw2/onboarding.faithfulknights.com:latest -f Dockerfile . | |
docker push ghcr.io/kashw2/onboarding.faithfulknights.com:${{ github.sha }} | |
docker push ghcr.io/kashw2/onboarding.faithfulknights.com:latest | |
working-directory: onboarding |