-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
705c19d
commit a5722bc
Showing
5 changed files
with
2,817 additions
and
49 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Publish to NPM | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.16' | ||
registry-url: 'https://registry.npmjs.org' | ||
scope: '@haloivanid' | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- run: npm i -g semantic-release | ||
|
||
- name: Build lib folder | ||
run: ./build.sh | ||
|
||
- name: Publish to NPM | ||
run: | | ||
cd lib | ||
npx semantic-release | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "ingress-prime-stat", | ||
"description": "A lightweight conversion for Ingress Prime stat in TypeScript", | ||
"version": "0.0.0-development-rev", | ||
"version": "0.0.0-development", | ||
"main": "src/main.ts", | ||
"author": "haloivanid <[email protected]>", | ||
"repository": { | ||
|
@@ -21,7 +21,8 @@ | |
"dev": "nodemon --watch 'src/**/*.ts' --exec 'ts-node' src/main.ts", | ||
"test": "jest", | ||
"lint": "eslint --ext .ts src --fix", | ||
"format": "prettier --write \"**/*.ts\"" | ||
"format": "prettier --write \"**/*.ts\"", | ||
"semantic-release": "semantic-release" | ||
}, | ||
"dependencies": { | ||
"dayjs": "^1.11.9" | ||
|
@@ -38,6 +39,7 @@ | |
"eslint-plugin-prettier": "^5.0.0", | ||
"jest": "^29.6.2", | ||
"prettier": "^3.0.1", | ||
"semantic-release": "^21.0.7", | ||
"terser": "^5.19.2", | ||
"ts-jest": "^29.1.1", | ||
"ts-node": "^10.9.1", | ||
|
Oops, something went wrong.