Skip to content

Add Type Alias to Table of Contents for MSDocs (#91) #98

Add Type Alias to Table of Contents for MSDocs (#91)

Add Type Alias to Table of Contents for MSDocs (#91) #98

name: Release Changes
on:
push:
branches:
- main
jobs:
build:
if: github.actor != 'mc-npm'
environment: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22
- run: npm ci
- run: npm run test:ci # Fully build the repo so we have artifacts available to create releases, include tests so we don't ship in a broken state
- name: Set git credentials
run: |
git config --global user.name "Minecraft Bot"
git config --global user.email "[email protected]"
git remote set-url origin "https://[email protected]/mojang/minecraft-scripting-libraries"
env:
REPO_PAT: ${{ secrets.REPO_PAT }}
# Pass the token on the command line for publishing
- name: Publish
run: npm run release -- --token "$NPM_TOKEN" --yes --new
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
REPO_PAT: ${{ secrets.REPO_PAT }}