-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix for npm publish * add dry-run publish test * bump version * new version * publish all files * change ci actions Co-authored-by: rob9315 <[email protected]>
- Loading branch information
Showing
8 changed files
with
84 additions
and
67 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
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,34 +1,35 @@ | ||
name: npm-publish | ||
on: | ||
push: | ||
branches: | ||
- master # Change this to your default branch | ||
jobs: | ||
npm-publish: | ||
name: npm-publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@master | ||
- name: Set up Node.js | ||
uses: actions/setup-node@master | ||
with: | ||
node-version: 14.0.0 | ||
- name: Install | ||
run: npm install | ||
- id: publish | ||
uses: JS-DevTools/npm-publish@v1 | ||
with: | ||
token: ${{ secrets.NPM_AUTH_TOKEN }} | ||
- name: Create Release | ||
if: steps.publish.outputs.type != 'none' | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ steps.publish.outputs.version }} | ||
release_name: Release ${{ steps.publish.outputs.version }} | ||
body: ${{ steps.publish.outputs.version }} | ||
draft: false | ||
prerelease: false | ||
name: npm-publish | ||
on: | ||
push: | ||
branches: | ||
- master # Change this to your default branch | ||
jobs: | ||
npm-publish: | ||
name: npm-publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@master | ||
- name: Set up Node.js | ||
uses: actions/setup-node@master | ||
with: | ||
node-version: 14.0.0 | ||
- name: Install | ||
run: npm install && npm run build | ||
- id: publish | ||
uses: JS-DevTools/npm-publish@v1 | ||
with: | ||
token: ${{ secrets.NPM_AUTH_TOKEN }} | ||
- name: Create Release | ||
if: steps.publish.outputs.type != 'none' | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ steps.publish.outputs.version }} | ||
release_name: Release ${{ steps.publish.outputs.version }} | ||
body: ${{ steps.publish.outputs.version }} | ||
draft: false | ||
prerelease: false | ||
|
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,4 @@ | ||
node_modules/* | ||
npm-debug.log | ||
package-lock.json | ||
yarn.lock |
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,17 +1,17 @@ | ||
{ | ||
"name": "yggdrasil", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"author": "Zeke Sonxx <[email protected]>", | ||
"description": "Mojang authentication (Yggdrasil) client", | ||
"scripts": { | ||
"build": "tsc", | ||
"test": "mocha -R spec", | ||
"pretest": "npm run lint && npm run build", | ||
"prepublish": "npm run lint && npm run build", | ||
"lint": "ts-standard", | ||
"fix": "ts-standard --fix", | ||
"build": "npx tsc" | ||
"fix": "ts-standard --fix" | ||
}, | ||
"main": "./lib/index", | ||
"main": "./lib/index.js", | ||
"types": "./lib/index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/PrismarineJS/node-yggdrasil.git" | ||
|
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
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,19 +1,27 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es2019", | ||
"module": "CommonJS", | ||
"strict": true, | ||
"target": "ES2020", | ||
"module": "commonjs", | ||
"sourceMap": true, | ||
"declaration": true, | ||
// "resolveJsonModule": true, because of ts-standard had to disable... | ||
"strict": true, | ||
"moduleResolution": "node", | ||
"resolveJsonModule": true, | ||
"esModuleInterop": true, | ||
"types": ["node"], | ||
"outDir": "lib", | ||
"noImplicitThis": false | ||
}, | ||
"include": [ | ||
"src" | ||
], | ||
"exclude": [ | ||
"lib","node_modules" | ||
] | ||
} | ||
"removeComments": false | ||
}, | ||
"compileOnSave": true, | ||
"include": [ | ||
"./src/**/*", | ||
"./test/**/*" | ||
], | ||
"exclude": [ | ||
"lib", | ||
"node_modules", | ||
"bin", | ||
"examples", | ||
"scripts" | ||
], | ||
} |