Skip to content

yarn npm ci equiv

yarn npm ci equiv #3

Workflow file for this run

name: Deploy preview branch
on:
push:
branches:
- feature/serverless
jobs:
deploy:
name: deploy
runs-on: ubuntu-latest
environment: preview
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: rm -rf node_modules && yarn install --frozen-lockfile
- name: Install Plugin & Deploy
uses: serverless/[email protected]
with:
args: -c ""cd ./functions && serverless plugin install --name serverless-prune-plugin && serverless deploy"
entrypoint: /bin/sh
env:
SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }}