Skip to content

Editable sequence breakers (#1092) #399

Editable sequence breakers (#1092)

Editable sequence breakers (#1092) #399

Workflow file for this run

name: Publish NPM Package
on:
push:
branches: ['dev']
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: '18.4.0'
registry-url: 'https://registry.npmjs.org'
- name: Install PNPM
uses: pnpm/action-setup@v2
with:
version: '8.6.0'
- name: Get cached dependencies
# cache is automatically saved after this job completes. jobs depending on this one will get the latest cached files
id: cache-step
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Install dependencies
if: steps.cache-step.outputs.cache-hit != 'true'
run: |
echo $NODE_ENV
pnpm install --frozen-lockfile
- name: Build
run: |
echo $NODE_ENV
pnpm build:server
pnpm build:prod
- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
node .github/rev-version.js
npm publish