-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15ac245
commit c160ef6
Showing
1 changed file
with
18 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,24 +11,27 @@ jobs: | |
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
|
||
- uses: pnpm/[email protected] | ||
name: Instal PNPM | ||
with: | ||
node-version: 16 | ||
- run: pnpm install --frozen-lockfile | ||
- run: pnpm test | ||
version: 9 | ||
run_install: false | ||
|
||
publish-npm: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
- name: Install Node.JS | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
registry-url: https://registry.npmjs.org/ | ||
- run: pnpm install --frozen-lockfile | ||
- run: npm publish | ||
node-version-file: ".nvmrc" | ||
cache: pnpm | ||
registry-url: https://registry.npmjs.org | ||
|
||
- name: Install Dependencies | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Publish Package | ||
shell: bash | ||
run: npm publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |