Skip to content

Commit

Permalink
Update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
rakheyl committed Sep 6, 2021
1 parent 2dc2137 commit 2d6c401
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 14
- run: npm install
- run: npm test

publish-gpr:
Expand All @@ -30,6 +31,7 @@ jobs:
node-version: 14
- run: node -e "const fs=require('fs');const path=require('path');const pkg=require('./package.json');pkg.name='@rakheyl/'+pkg.name;fs.writeFileSync(path.join(__dirname,'./package.json'),JSON.stringify(pkg));"
- run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
- run: npm install
- run: npm run build
- run: npm publish --access public --registry=https://npm.pkg.github.com
env:
Expand All @@ -44,6 +46,7 @@ jobs:
with:
node-version: 14
registry-url: "https://registry.npmjs.org"
- run: npm install
- run: npm run build
- run: npm publish --access public
env:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"scripts": {
"build": "npx tsc",
"test": "npx tsc && node ./lib/index.js"
"test": "npx tsc && node ./dist/index.js"
},
"types": "./dist/index.d.ts",
"version": "1.0.0",
Expand Down

0 comments on commit 2d6c401

Please sign in to comment.