2022-05-30 09:47:15 +00:00
|
|
|
name: Publish
|
2022-05-18 16:06:58 +00:00
|
|
|
|
2022-05-19 16:14:47 +00:00
|
|
|
on:
|
2022-08-03 04:26:56 +00:00
|
|
|
workflow_dispatch:
|
2022-05-19 16:14:47 +00:00
|
|
|
push:
|
2022-05-30 09:47:15 +00:00
|
|
|
tags:
|
2022-05-30 19:50:34 +00:00
|
|
|
- v*
|
2022-05-18 16:06:58 +00:00
|
|
|
|
|
|
|
jobs:
|
2022-05-19 16:14:47 +00:00
|
|
|
publish:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install dependencies
|
|
|
|
run: npm install
|
|
|
|
- name: Build puppeteer
|
|
|
|
run: npm run build
|
|
|
|
- name: Publish puppeteer
|
|
|
|
env:
|
|
|
|
NPM_TOKEN: ${{secrets.NPM_TOKEN_PUPPETEER}}
|
|
|
|
run: |
|
|
|
|
npm config set registry 'https://wombat-dressing-room.appspot.com/'
|
|
|
|
npm config set '//wombat-dressing-room.appspot.com/:_authToken' '${NPM_TOKEN}'
|
|
|
|
echo "Publishing puppeteer"
|
|
|
|
npm publish
|
|
|
|
# DEPRECATED_RANGE=$(node utils/get_deprecated_version_range.js)
|
|
|
|
# echo "Deprecating old puppeteer versions: $DEPRECATED_RANGE"
|
|
|
|
# npm deprecate puppeteer@$DEPRECATED_RANGE "Version no longer supported. Upgrade to @latest"
|
|
|
|
- name: Publish puppeteer-core
|
|
|
|
env:
|
|
|
|
NPM_TOKEN: ${{secrets.NPM_TOKEN_PUPPETEER_CORE}}
|
|
|
|
run: |
|
|
|
|
utils/prepare_puppeteer_core.js
|
|
|
|
npm config set registry 'https://wombat-dressing-room.appspot.com/'
|
|
|
|
npm config set '//wombat-dressing-room.appspot.com/:_authToken' '${NPM_TOKEN}'
|
|
|
|
npm publish
|