Skip to content

1.8.1

1.8.1 #14

Workflow file for this run

name: publish
on:
release:
types: [published]
jobs:
package:
runs-on: ubuntu-24.04
env:
PUPPETEER_VERSION: 24.2.1
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js LTS
uses: actions/setup-node@v4
with:
registry-url: https://registry.npmjs.org
node-version: lts/*
- name: Get npm cache location
id: get-npm-cache
shell: bash
run: |
echo "NPM_CONFIG_CACHE=$(npm config get cache)" >> "$GITHUB_ENV"
echo "npm_config_cache=$(npm config get cache)" >> "$GITHUB_OUTPUT"
- name: Cache npm packages
uses: actions/cache@v4
with:
path: ${{ steps.get-npm-cache.outputs.npm_config_cache }}
key: npm-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: npm-${{ runner.os }}-${{ runner.arch }}
- name: Cache Puppeteer
uses: actions/cache@v4
with:
path: ~/.cache/puppeteer/
key: puppeteer-${{ runner.os }}-${{ runner.arch }}-${{ env.PUPPETEER_VERSION }}}
- name: Install dependencies
run: npm ci
- name: Publish
run: |
npm version "${GITHUB_REF##*/}" --allow-same-version --no-git-tag-version
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}