Skip to content

build(deps-dev): update dependency @wppconnect/wa-version to ^1.2.118 #1382

build(deps-dev): update dependency @wppconnect/wa-version to ^1.2.118

build(deps-dev): update dependency @wppconnect/wa-version to ^1.2.118 #1382

Workflow file for this run

name: Nightly Release
on:
push:
branches:
- 'main'
jobs:
nightly:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
with:
fetch-depth: 0
- name: Fetching tags
run: git fetch --tags -f || true
- name: Setup Node
uses: actions/setup-node@v3.8.1
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@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:
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/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
dist/wppconnect-wa.js
gzip: folders
allow_override: true