Skip to content

Commit

Permalink
another try at automation w pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
kourosh-alasti committed Jun 24, 2024
1 parent 15ac245 commit c160ef6
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit c160ef6

Please sign in to comment.