chore(deps-dev): bump @typescript-eslint/parser from 6.14.0 to 6.15.0 #2283
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
name: Test and release | |
# Run the workflow when a Pull Request is opened or when changes are pushed to main on 'xdy/xdy-pf2e-workbench' (i.e. don't run on forks) | |
on: | |
pull_request: | |
push: | |
branches: [ main ] | |
jobs: | |
release: | |
# Only release on push to main on xdy/xdy-pf2e-workbench | |
if: github.event_name == 'push' && (github.ref == 'refs/heads/main') && github.repository == 'xdy/xdy-pf2e-workbench' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
# Not sure this is the right way to do it, but, eh, it works. | |
- name: Pull & update submodules recursively | |
run: | | |
git submodule update --init --recursive | |
git submodule update --recursive --remote | |
- uses: stefanzweifel/git-auto-commit-action@v5.0.0 | |
with: | |
commit_message: "chore: Update submodules" | |
- name: Setup Node.js | |
uses: actions/setup-node@v4.0.0 | |
with: | |
node-version: 18.x | |
cache: 'npm' | |
- name: Install | |
run: npm install | |
- name: install fvtt cli | |
id: fvtt-install | |
run: npm install -g @foundryvtt/foundryvtt-cli | |
- name: Build packs | |
run: npm run build:packs | |
- name: Build | |
run: npm run build | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: npx semantic-release | |
- name: Get tag | |
run: echo "WORKBENCH_VERSION=$(git describe --tags --abbrev=0)" >> "$GITHUB_ENV" | |
# - name: Publish to Foundry VTT Repo | |
# id: publish_foundry_repo | |
# if: github.event_name == 'push' && (github.ref == 'refs/heads/main') && github.repository == 'xdy/xdy-pf2e-workbench' | |
# run: npx @ghost-fvtt/foundry-publish | |
# env: | |
# FVTT_MANIFEST_PATH: "static/module.json" | |
# FVTT_PACKAGE_ID: "xdy-pf2e-workbench" | |
# FVTT_USERNAME: ${{ secrets.FOUNDRY_ADMIN_USERNAME }} | |
# FVTT_PASSWORD: ${{ secrets.FOUNDRY_ADMIN_PASSWORD }} | |
# FVTT_MANIFEST_URL: https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.json | |
# FVTT_USE_NEW_PACKAGE_ADMINISTRATION_INTERFACE: true | |
# Publish the release to FoundryVTT's package repository. | |
- name: Publish Module to FoundryVTT Website | |
uses: Varriount/fvtt-autopublish@v2.0.1 | |
with: | |
username: ${{ secrets.FOUNDRY_ADMIN_USERNAME }} | |
password: ${{ secrets.FOUNDRY_ADMIN_PASSWORD }} | |
module-id: "xdy-pf2e-workbench" | |
#manifest-url: https://github.com/${{ github.repository }}/releases/download/${{ env.RELEASE_NAME }}/module.json | |
manifest-url: https://github.com/xdy/xdy-pf2e-workbench/releases/latest/download/module.json | |
manifest-file: "static/module.json" |