-
Notifications
You must be signed in to change notification settings - Fork 61
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
Showing
7 changed files
with
1,355 additions
and
947 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 |
---|---|---|
|
@@ -6,42 +6,46 @@ on: | |
- '*' | ||
tags: | ||
- 'v*' | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
|
||
jobs: | ||
build: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: master | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- uses: volta-cli/action@v1 | ||
- name: authorise pnpm | ||
run: | | ||
pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}" | ||
corepack enable | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: latest | ||
run_install: true | ||
- name: install dependencies | ||
run: pnpm install | ||
|
||
- run: pnpm lint | ||
- name: test | ||
run: pnpm test | ||
|
||
publish-npm: | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
needs: build | ||
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: master | ||
|
||
- uses: volta-cli/action@v1 | ||
|
||
- uses: pnpm/[email protected] | ||
with: | ||
version: latest | ||
run_install: true | ||
|
||
- run: pnpm build | ||
- run: | | ||
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} | ||
pnpm package | ||
pnpm publish ./package | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: authorise pnpm | ||
run: | | ||
pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}" | ||
corepack enable | ||
- name: install dependencies | ||
run: pnpm install | ||
|
||
- name: publish | ||
run: pnpm publish --access public |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
engine-strict=true | ||
use-node-version=22.11.0 |
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 |
---|---|---|
|
@@ -4,30 +4,27 @@ | |
"scripts": { | ||
"dev": "vite dev --port 3030", | ||
"build": "vite build", | ||
"package": "svelte-package", | ||
"preview": "vite preview", | ||
"lint": "eslint ." | ||
}, | ||
"devDependencies": { | ||
"@beyonk/eslint-config": "^6.0.0", | ||
"@sveltejs/kit": "^1.2.9", | ||
"@sveltejs/package": "^1.0.2", | ||
"eslint": "^7.31.0", | ||
"eslint-plugin-svelte3": "^3.2.0", | ||
"svelte": "^3.55.1", | ||
"svelte2tsx": "^0.6.0", | ||
"typescript": "^4.9.4", | ||
"vite": "^4.0.4" | ||
"@beyonk/eslint-config": "^8.0.2", | ||
"@sveltejs/kit": "^2.8.0", | ||
"@sveltejs/vite-plugin-svelte": "^4.0.0", | ||
"eslint": "^9.14.0", | ||
"eslint-plugin-svelte": "^2.46.0", | ||
"svelte": "^5.1.14", | ||
"svelte2tsx": "^0.7.23", | ||
"typescript": "^5.6.3", | ||
"vite": "^5.4.11" | ||
}, | ||
"peerDependencies": { | ||
"svelte": ">=3.0.0" | ||
"svelte": ">=4.0.0" | ||
}, | ||
"exports": { | ||
".": "./components.js" | ||
}, | ||
"types": "./components.d.ts", | ||
"type": "module", | ||
"volta": { | ||
"node": "20.11.1" | ||
} | ||
"packageManager": "[email protected]" | ||
} |
Oops, something went wrong.