Skip to content

chore(deps-dev): bump @types/node from 20.3.0 to 20.3.3 #4097

chore(deps-dev): bump @types/node from 20.3.0 to 20.3.3

chore(deps-dev): bump @types/node from 20.3.0 to 20.3.3 #4097

Workflow file for this run

name: Test and release
# Run the workflow when a Pull Request is opened or when changes are pushed to master on 'xdy/twodsix-foundryvtt' (i.e. don't run on forks)
on:
pull_request:
push:
branches: [ master]
jobs:
test:
if: github.repository == 'xdy/twodsix-foundryvtt'
runs-on: ubuntu-latest
strategy:
matrix:
# Run the steps below with the following versions of Node.js
node-version: [16.x]
steps:
# Fetch the latest commit
- name: Checkout
uses: actions/checkout@v3
with:
submodules: 'true'
# Setup Node.js using the appropriate version
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
# Install package dependencies
- name: Install
run: npm install
# Lint the code
- name: Lint
run: npm run lint
# Building is the only test right now (mainly tests if dependabot actually can update)
- name: Build
run: npm run build
# Run tests
#- name: Test
#run: npm test
release:
# Only release on push to master on xdy/twodsix-foundryvtt
if: github.event_name == 'push' && (github.ref == 'refs/heads/master') && github.repository == 'xdy/twodsix-foundryvtt'
runs-on: ubuntu-latest
# Waits for test jobs for each Node.js version to complete
needs: [test]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: 'true'
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: 18.x
cache: 'npm'
- name: Install
run: npm install
- name: Build
run: npm run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
- name: Send Webhook Notification
env:
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
run: bash src/scripts/discord.sh $WEBHOOK_URL
shell: bash
- name: Get tag
run: echo "TWODSIX_VERSION=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
- name: Install playwright
run: npx playwright install
- name: Publish to Foundry VTT Repo
id: publish_foundry_repo
run: npx @ghost-fvtt/foundry-publish
env:
FVTT_MANIFEST_PATH: 'static/system.json'
FVTT_PACKAGE_ID: ${{ 468 }}
FVTT_USERNAME: ${{ secrets.FOUNDRY_ADMIN_USERNAME }}
FVTT_PASSWORD: ${{ secrets.FOUNDRY_ADMIN_PASSWORD }}
# # Publish the release to FoundryVTT's package repository
# - name: Publish to Foundry Admin
# uses: Varriount/[email protected]
# with:
# username: ${{ secrets.FOUNDRY_ADMIN_USERNAME }}
# password: ${{ secrets.FOUNDRY_ADMIN_PASSWORD }}
# module-id: 468
# #manifest-url: https://github.com/xdy/twodsix-foundryvtt/releases/download/${{ env.TWODSIX_VERSION }}/system.json
# manifest-url: https://github.com/xdy/twodsix-foundryvtt/releases/latest/download/system.json
# manifest-file: static/system.json