Bump ws from 7.5.7 to 7.5.10 #162
Workflow file for this run
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
# ======== | |
# VALIDATE | |
# ======== | |
name: Validate | |
# Activation Events | |
# ================= | |
on: # rebuild any PRs and main branch changes | |
pull_request: | |
push: | |
branches: | |
- main | |
- "releases/*" | |
workflow_dispatch: | |
# Jobs | |
# ==== | |
jobs: | |
# Build | |
# ----- | |
build: # make sure build/ci works properly | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
npm install | |
npm run build | |
# Check Dist | |
# ---------- | |
check-dist: # Check whether the checked-in dist actually matches what we expect it to be | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set Node.js 16.x | |
uses: actions/setup-node@v4.0.2 | |
with: | |
node-version: 16.x | |
- name: Install dependencies | |
run: npm ci | |
- name: Rebuild the dist/ directory | |
run: npm run dev | |
# If dist/index.js was different than expected, push changes | |
- name: check for changes | |
id: git-diff | |
if: ${{ github.ref == 'main' }} | |
run: | | |
if git diff --exit-code; then | |
echo "::set-output name=changes_exist::false" | |
else | |
echo "::set-output name=changes_exist::true" | |
fi | |
- name: push | |
if: ${{ steps.git-diff.outputs.changes_exist == 'true' }} | |
run: | | |
git config user.name 'github-actions[bot]' | |
git config user.email 'github-actions[bot]@users.noreply.github.com' | |
git add . | |
git commit -m 'Build 📦' | |
git push | |
# Test | |
# ---- | |
test: # make sure the action works on a clean machine without building | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./ | |
with: | |
dryrun: true | |
create: true | |
update: true | |
delete: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |