-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (32 loc) · 1.11 KB
/
release-changes.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Release Changes
on:
push:
branches:
- main
jobs:
build:
environment: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run test # Fully build the repo so we have artifacts available to create releases, include tests so we don't ship in a broken state
# Uncomment the below when ready to publish to NPM for the first time
- name: Set git credentials
run: |
git config --global user.name "Raphael Landaverde"
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 }}