7
7
branches :
8
8
- main
9
9
10
- runs-on : ubuntu-latest
10
+ jobs :
11
+ build :
12
+ runs-on : ubuntu-latest
11
13
12
- steps :
13
- - uses : actions/checkout@v4
14
- with :
15
- persist-credentials : false
16
- - name : Use Node.js 20.x
17
- uses : actions/setup-node@v3
18
- with :
19
- node-version : ' 20.x'
20
- - run : npm ci
21
- - 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
22
-
23
- # Uncomment the below when ready to publish to NPM for the first time
24
- # - name: Set git credentials
25
- # run: |
26
- # git config --global user.name "Raphael Landaverde"
27
- # git config --global user.email "[email protected] "
28
- # git remote set-url origin "https://[email protected] /mojang/minecraft-scripting-libraries"
29
- # env:
30
- # REPO_PAT: ${{ secrets.REPO_PAT }}
31
-
32
- # # Pass the token on the command line for publishing
33
- # - name: Publish
34
- # run: npm run release -- --token "$NPM_TOKEN" --yes --new
35
- # env:
36
- # NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
14
+ steps :
15
+ - uses : actions/checkout@v4
16
+ with :
17
+ persist-credentials : false
18
+ - name : Use Node.js 20.x
19
+ uses : actions/setup-node@v3
20
+ with :
21
+ node-version : ' 20.x'
22
+ - run : npm ci
23
+ - 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
24
+
25
+ # Uncomment the below when ready to publish to NPM for the first time
26
+ # - name: Set git credentials
27
+ # run: |
28
+ # git config --global user.name "Raphael Landaverde"
29
+ # git config --global user.email "[email protected] "
30
+ # git remote set-url origin "https://[email protected] /mojang/minecraft-scripting-libraries"
31
+ # env:
32
+ # REPO_PAT: ${{ secrets.REPO_PAT }}
33
+
34
+ # # Pass the token on the command line for publishing
35
+ # - name: Publish
36
+ # run: npm run release -- --token "$NPM_TOKEN" --yes --new
37
+ # env:
38
+ # NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments