Skip to content

Commit

Permalink
fix: package manager scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ndungtse committed Nov 27, 2023
1 parent 84b34e9 commit 6dacc2f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 20
- run: npm ci
- run: npm lint
cache: 'yarn'
- run: yarn install
- run: yarn lint

publish-gpr:
needs: build
Expand All @@ -30,8 +31,9 @@ jobs:
with:
node-version: 20
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm prepack
cache: 'yarn'
- run: yarn install
- run: yarn run prepack
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,5 @@
"dist/**/*.js*",
"dist/**/*.mjs*",
"dist/**/*.d*"
],
"packageManager": "yarn@3.2.4"
]
}

0 comments on commit 6dacc2f

Please sign in to comment.