44 push :
55 branches :
66 - master
7-
7+
88jobs :
9- build :
10- runs-on : ubuntu-latest
11- steps :
12- - name : Checkout repository
13- uses : actions/checkout@v3
14-
15- - name : Set up Node.js
16- uses : actions/setup-node@v3
17- with :
18- node-version : 20
19- cache : ' npm'
20-
21- - name : Authenticate to Github Package Registry
22- env :
23- NODE_AUTH_TOKEN : ${{ secrets.PKG_TOKEN }}
24- run : |
25- echo "@contentstack:registry=https://npm.pkg.github.com" >> ~/.npmrc
26- echo "//npm.pkg.github.com/:_authToken=${ NODE_AUTH_TOKEN}" > ~/.npmrc
27-
28- - name : Install dependencies
29- run : npm install
30-
31- - name : Build the package
32- run : npm run compile
33-
34- - name : Publish to Github Package Registry
35- env :
36- NODE_AUTH_TOKEN : ${{ secrets.PKG_TOKEN }}
37- run : |
38- echo "Publishing Epicurus package to GitHub Package Registry..."
39- npm publish --registry=https://npm.pkg.github.com
9+ build :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout repository
14+ uses : actions/checkout@v3
15+
16+ - name : Set up Node.js
17+ uses : actions/setup-node@v3
18+ with :
19+ node-version : 20
20+ cache : ' npm'
21+
22+ - name : Authenticate to GitHub Package Registry
23+ env :
24+ NODE_AUTH_TOKEN : ${{ secrets.PKG_TOKEN }}
25+ run : |
26+ echo "@contentstack:registry=https://npm.pkg.github.com" >> ~/.npmrc
27+ echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc
28+
29+ - name : Install dependencies
30+ run : npm ci
31+
32+ - name : Build the package
33+ run : npm run compile
34+
35+ - name : Publish to GitHub Package Registry
36+ env :
37+ NODE_AUTH_TOKEN : ${{ secrets.PKG_TOKEN }}
38+ run : |
39+ echo "Publishing Epicurus package to GitHub Package Registry..."
40+ npm publish --registry=https://npm.pkg.github.com
0 commit comments