update publish-npm workflow
This commit is contained in:
parent
4a0a18d928
commit
7441df90c7
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue