diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 7c0a9b0..bdb7fee 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -15,6 +15,7 @@ jobs: - uses: actions/setup-node@v2 with: node-version: 14 + - run: npm install - run: npm test publish-gpr: @@ -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: @@ -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: diff --git a/package.json b/package.json index 15a2b37..2678ca1 100644 --- a/package.json +++ b/package.json @@ -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",