Skip to content

Commit

Permalink
update publishing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
leonitousconforti committed Apr 7, 2024
1 parent 0a92be7 commit cd136cb
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,29 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: 'true'
- uses: ./.github/actions/common-setup

- uses: actions/setup-go@v5
- uses: actions/setup-node@v4
with:
cache-dependency-path: |
submodules/wireguard-go/go.sum
node-version: "18.x"

- run: pnpm check
- run: pnpm build
- run: pnpm test
- run: git status
- name: "Install pnpm"
uses: pnpm/action-setup@v3
with:
version: 8
run_install: false

- name: "Install dependencies with pnpm"
shell: bash
run: pnpm install

- uses: actions/setup-node@v4
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org/"
- run: pnpm check
- run: pnpm build
- run: pnpm test
- run: pnpm publish --no-git-checks --access public --registry https://registry.npmjs.org/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand All @@ -42,6 +50,10 @@ jobs:
with:
node-version: "18.x"
registry-url: "https://npm.pkg.github.com/"
- run: pnpm check
- run: pnpm build
- run: pnpm test
- run: npm init -y --scope ${{ github.repository_owner }}
- run: pnpm publish --no-git-checks --access public --registry https://npm.pkg.github.com/
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit cd136cb

Please sign in to comment.