build(deps-dev): update dependency webpack to ^5.92.0 (#2217) #1551
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Nightly Release | |
on: | |
push: | |
branches: | |
- 'master' | |
jobs: | |
nightly: | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Fetching tags | |
run: git fetch --tags -f || true | |
- name: Setup Node | |
uses: actions/setup-node@v4.0.2 | |
with: | |
node-version: 18.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@v4 | |
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/github-release@2.0 | |
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 |