Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 14 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: publish

on:
push:
branches:
- '*'
tags:
- 'v*'

Expand All @@ -12,19 +10,20 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: master
- name: checkout
uses: actions/checkout@v5

- uses: volta-cli/action@v1
- name: set up node and pnpm
run: |
corepack enable
pnpm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}"
pnpm config set '//npm.pkg.github.com/:_authToken' "${{ secrets.GITHUB_TOKEN }}"
pnpm i

- uses: pnpm/action-setup@v2.0.1
with:
version: 6.0.2
run_install: true
- name: build
run: pnpm build

- run: pnpm build
- run: |
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
pnpm package
pnpm publish ./package
- name: publish
run: |
pnpm publish --registry https://npm.pkg.github.com --no-git-checks
pnpm publish --registry https://registry.npmjs.org --no-git-checks
4 changes: 4 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
engine-strict=true
use-node-version=24.14.1
node-version=24.14.1
node-mirror:release=https://nodejs-org.b-cdn.net/download/release/
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@
"type": "module",
"volta": {
"node": "14.18.2"
}
},
"packageManager": "pnpm@10.33.0",
"repository": "https://github.com/beyonk/svelte-usetiful.git"
}