Skip to content

build(deps): update dependency puppeteer to ^20.9.0 #1228

build(deps): update dependency puppeteer to ^20.9.0

build(deps): update dependency puppeteer to ^20.9.0 #1228

Workflow file for this run

name: Nightly Release
on:
push:
branches:
- 'master'
jobs:
nightly:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Fetching tags
run: git fetch --tags -f || true
- name: Setup Node
uses: actions/[email protected]
with:
node-version: 16.x
- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: Setup npm cache
uses: actions/cache@v3
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Dependencies
run: npm ci || npm install
env:
PUPPETEER_SKIP_DOWNLOAD: true
- name: Update version to alpha
run: npm version prerelease --preid=alpha --no-git --no-git-tag-version
- name: Build NPM package
run: npm pack && mv wppconnect-*.tgz wppconnect-nightly.tgz
- name: Build API-Docs
run: npm run docs:build
- name: Generate Changelog
id: generate_changelog
run: |
changelog=$(npm run changelog:preview --silent)
changelog="${changelog//$'\n'/'%0A'}"
changelog="${changelog//$'\r'/'%0D'}"
echo -e "set-output name=changelog::${changelog-<empty>}\n"
echo -e "::set-output name=changelog::${changelog}\n"
- name: Update Nightly TAG
uses: richardsimko/update-tag@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: nightly
- name: Update Nightly Release
uses: meeDamian/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: nightly
commitish: ${{ github.sha }}
name: Nightly Release
body: ${{ steps.generate_changelog.outputs.changelog }}
draft: false
prerelease: true
files: >
wppconnect-nightly.tgz
api-docs/
gzip: folders
allow_override: true