Skip to content
Merged
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
40 changes: 12 additions & 28 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,44 +39,28 @@ jobs:
echo "core-changed=$core_changed" >> "$GITHUB_OUTPUT"
echo "lit-changed=$lit_changed" >> "$GITHUB_OUTPUT"

publish-core:
name: Publish core package
publish:
name: Publish packages
needs: check-version
if: needs.check-version.outputs.core-changed == 'true'
if: needs.check-version.outputs.core-changed == 'true' || needs.check-version.outputs.lit-changed == 'true'
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node-version: 22
node-version: 24
registry-url: "https://registry.npmjs.org"
- run: |
npm install
- run: npm install
- name: Publish core package
if: needs.check-version.outputs.core-changed == 'true'
run: |
cd packages/esroute
npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

publish-lit:
name: Publish lit package
needs: check-version
if: needs.check-version.outputs.lit-changed == 'true'
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: "https://registry.npmjs.org"
- run: |
npm install
- name: Publish lit package
if: needs.check-version.outputs.lit-changed == 'true'
run: |
cd packages/esroute-lit
npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions packages/esroute-lit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esroute/lit",
"version": "0.11.0",
"version": "0.11.1",
"description": "A small efficient client-side routing library for lit, written in TypeScript.",
"main": "dist/index.js",
"license": "MIT",
Expand All @@ -20,7 +20,7 @@
"typescript": "^5.4.5"
},
"dependencies": {
"esroute": "^0.11.0",
"esroute": "^0.11.1",
"lit": "^3.1.1"
}
}
1 change: 0 additions & 1 deletion packages/esroute/.npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
src
tsconfig.json
dist/**/*.map
dist/**/*.spec.*
demo
*.tsbuildinfo
2 changes: 1 addition & 1 deletion packages/esroute/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "esroute",
"version": "0.11.0",
"version": "0.11.1",
"description": "A small efficient framework-agnostic client-side routing library, written in TypeScript.",
"types": "dist/index.d.ts",
"main": "dist/index.js",
Expand Down
6 changes: 5 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@
"sourceMap": true,
"strict": true,
"skipLibCheck": true
}
},
"references": [
{ "path": "packages/esroute" },
{ "path": "packages/esroute-lit" }
]
}
Loading