chore(pnpm): bump dependencies #483
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: main | |
on: [push] | |
env: | |
NODE_VERSION: '18.x' | |
DOCKER_IMAGE_NAME: ${{ secrets.DOCKER_USER }}/about | |
jobs: | |
continuous_integration: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js ${{ env.NODE_VERSION }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: pnpm | |
run: npm install -g pnpm --registry=https://registry.npmjs.org | |
- name: Get pnpm cache directory | |
uses: actions/cache@v3 | |
with: | |
path: ~/.local/share/pnpm/store | |
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install app dependencies | |
run: pnpm install | |
- name: Lint app files | |
run: pnpm run lint | |
- name: Build app | |
run: pnpm run build | |
- name: Package app with Docker | |
if: github.ref == 'refs/heads/main' | |
env: | |
DOCKER_USER: ${{ secrets.DOCKER_USER }} | |
DOCKER_PASS: ${{ secrets.DOCKER_PASS }} | |
run: | | |
pnpm run export | |
docker build -t ${DOCKER_IMAGE_NAME} . | |
echo ${DOCKER_PASS} | docker login -u ${DOCKER_USER} --password-stdin | |
docker push ${DOCKER_IMAGE_NAME} | |
- name: Deploy app | |
if: github.ref == 'refs/heads/main' | |
env: | |
DEPLOY_URL: ${{ secrets.DEPLOY_URL }} | |
DEPLOY_CREDENTIALS: ${{ secrets.DEPLOY_CREDENTIALS }} | |
run: bash script/deploy about "@docker-compose.yml" |