diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index c0e6486..74c5ea3 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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 }} diff --git a/packages/esroute-lit/package.json b/packages/esroute-lit/package.json index d4fa037..311872d 100644 --- a/packages/esroute-lit/package.json +++ b/packages/esroute-lit/package.json @@ -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", @@ -20,7 +20,7 @@ "typescript": "^5.4.5" }, "dependencies": { - "esroute": "^0.11.0", + "esroute": "^0.11.1", "lit": "^3.1.1" } } diff --git a/packages/esroute/.npmignore b/packages/esroute/.npmignore index 69d1260..73f6cbb 100644 --- a/packages/esroute/.npmignore +++ b/packages/esroute/.npmignore @@ -1,6 +1,5 @@ src tsconfig.json -dist/**/*.map dist/**/*.spec.* demo *.tsbuildinfo \ No newline at end of file diff --git a/packages/esroute/package.json b/packages/esroute/package.json index a458336..51cef5a 100644 --- a/packages/esroute/package.json +++ b/packages/esroute/package.json @@ -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", diff --git a/tsconfig.json b/tsconfig.json index b4ce75e..576be45 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,5 +9,9 @@ "sourceMap": true, "strict": true, "skipLibCheck": true - } + }, + "references": [ + { "path": "packages/esroute" }, + { "path": "packages/esroute-lit" } + ] }