update publish-npm workflow

This commit is contained in:
Sayantan Karmakar 2022-05-27 13:36:33 +05:30
parent 4a0a18d928
commit 7441df90c7
1 changed files with 2 additions and 13 deletions

View File

@ -6,19 +6,7 @@ defaults:
run:
working-directory: ts
jobs:
# build:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - run: cd ts
# - uses: actions/setup-node@v3
# with:
# node-version: "16.x"
# - run: cd ts
# - run: yarn install --frozen-lockfile
# - run: yarn test
publish:
# needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@ -31,7 +19,8 @@ jobs:
scope: "@project-serum"
cache: "npm"
cache-dependency-path: ts/package-lock.json
- run: yarn
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}