Skip to content

chore(deps): lock file maintenance #1521

chore(deps): lock file maintenance

chore(deps): lock file maintenance #1521

Workflow file for this run

name: Release
on:
pull_request:
types: [opened, synchronize, reopened]
release:
# "released" events are emitted either when directly be released or be edited from pre-released.
types: [prereleased, released]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4.0.0
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- name: install and build
run: |
pnpm install
pnpm build
- name: update version
if: github.event_name == 'release'
run: |
git config user.email "dummy@dummy"
git config user.name "dummy"
npm version from-git --allow-same-version
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm pack
- name: Test installation
run: |
set -eu
built_dir=$(pwd)
tempdir=$(mktemp -d)
cd $tempdir
pnpm add $built_dir/*.tgz
pnpm exec -- rendering-proxy --help
cd $built_dir
rm -rf $tempdir
- run: npm publish
if: github.event_name == 'release' && !github.event.release.prerelease
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}