build(deps-dev): update dependency @wppconnect/wa-version to ^1.5.830… #2529
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: | |
- 'main' | |
jobs: | |
nightly: | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
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 "dir=$(npm config get cache)" >> $GITHUB_OUTPUT | |
- 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: | |
PLAYWRIGHT_SKIP_BROWSER_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-wa-js-*.tgz wppconnect-nightly.tgz | |
- name: Generate Changelog | |
id: generate_changelog | |
run: | | |
changelog=$(npm run changelog:preview --silent) | |
echo "changelog<<EOF" >> $GITHUB_OUTPUT | |
echo "${changelog}" >> $GITHUB_OUTPUT | |
echo "EOF" >> $GITHUB_OUTPUT | |
- 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 | |
dist/wppconnect-wa.js | |
gzip: folders | |
allow_override: true |