Skip to content

fix: bump nanoid from 5.1.6 to 5.1.7 (#735) #677

fix: bump nanoid from 5.1.6 to 5.1.7 (#735)

fix: bump nanoid from 5.1.6 to 5.1.7 (#735) #677

Workflow file for this run

name: Release
on:
push:
branches:
- master
jobs:
release-test:
name: Release (Test)
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 22.x ]
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
persist-credentials: false
- name: Download artifact smws codes
uses: dsaltares/fetch-gh-release-asset@aa2ab1243d6e0d5b405b973c89fa4d06a2d0fff7
with:
token: ${{ secrets.GITHUB_TOKEN }}
file: "data.json"
repo: "elliottback/SMWS_Codes"
target: "./data.json"
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- name: Install stuff
run: npm ci
- name: build
run: npm run ci
- name: Install chrome
run: npx @puppeteer/browsers install chrome@stable
- name: Start Xvfb and Test
run: |
Xvfb :99 -screen 0 1920x1080x24 &
export DISPLAY=:99
npm test
- name: Archive Test result artifacts
uses: actions/upload-artifact@v7
if: always()
with:
name: dist
if-no-files-found: error
path: |
dist/*.png
release-release:
name: Release (Release)
runs-on: ubuntu-latest
needs: [ "release-test" ]
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
persist-credentials: false
- name: Download artifact smws codes
uses: dsaltares/fetch-gh-release-asset@aa2ab1243d6e0d5b405b973c89fa4d06a2d0fff7
with:
token: ${{ secrets.GITHUB_TOKEN }}
file: "data.json"
repo: "elliottback/SMWS_Codes"
target: "./data.json"
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Release
env:
GH_TOKEN: ${{ secrets.PAT }}
run: npx semantic-release@19