From 533189189bb20ff44e5db8c39097735a1ba089d3 Mon Sep 17 00:00:00 2001 From: Franck Cornu Date: Tue, 12 Nov 2024 14:56:09 -0500 Subject: [PATCH] - Updated actions to node 18 + updated pacakge version to include build metadata --- .github/workflows/publish.yml | 14 +++++++++----- packages/components/package.json | 4 ++-- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5b22444..2b90824 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,12 +14,14 @@ jobs: outputs: majorMinorPatch: ${{ steps.setoutputs.outputs.majorMinorPatch }} semver: ${{ steps.setoutputs.outputs.semver }} + fullsemver: ${{ steps.setoutputs.outputs.fullsemver }} + buildmetadata: ${{ steps.setoutputs.outputs.buildmetadata }} steps: - uses: actions/setup-node@v3 with: - node-version: '16' + node-version: '18' - name: Checkout uses: actions/checkout@v3 @@ -41,6 +43,8 @@ jobs: echo "majorMinorPatch=$GitVersion_MajorMinorPatch" >> "$GITHUB_OUTPUT" echo "semver=$GitVersion_SemVer" >> "$GITHUB_OUTPUT" echo "fullsemver=$GitVersion_FullSemVer" >> "$GITHUB_OUTPUT" + echo "buildmetadata=$GitVersion_BuildMetaData" >> "$GITHUB_OUTPUT" + tests_components: runs-on: ubuntu-latest defaults: @@ -59,7 +63,7 @@ jobs: - uses: actions/setup-node@v3 with: - node-version: '16' + node-version: '18' - name: Install dependencies run: | @@ -85,7 +89,7 @@ jobs: - uses: actions/setup-node@v3 with: - node-version: '16' + node-version: '18' - uses: pnpm/action-setup@v2 with: @@ -169,7 +173,7 @@ jobs: run: working-directory: ./packages/components env: - VERSION: ${{ needs.version.outputs.fullsemver }} + VERSION: ${{ format('{0}-{1}',needs.version.outputs.semver, needs.version.outputs.buildmetadata) }} steps: - uses: actions/setup-node@v3 with: @@ -236,7 +240,7 @@ jobs: steps: - uses: actions/setup-node@v3 with: - node-version: '16' + node-version: '18' registry-url: 'https://registry.npmjs.org' - name: get-npm-version diff --git a/packages/components/package.json b/packages/components/package.json index f1c0d79..c79de2c 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -1,6 +1,6 @@ { "name": "@pnp/modern-search-core", - "version": "0.0.0", + "version": "1.1.0-beta.1-11", "description": "PnP Modern Search - Core Components", "main": "dist/es6/exports/index.js", "files": [ @@ -15,7 +15,7 @@ "lint": "eslint \"**/*.ts\"", "tailwindcss": "tailwindcss --postcss -i ./src/styles/tailwind-styles.module.ts -o ./src/styles/tailwind-styles-css.ts --minify", "tailwindcss:watch": "tailwindcss --postcss -i ./src/styles/tailwind-styles.module.ts -o ./src/styles/tailwind-styles-css.ts --watch --minify", - "tailwindcss:dev:watch" : "tailwindcss --config ./tailwind-dev.config.js -i ./dev/tailwind.css -o ./dev/index.css --watch --minify", + "tailwindcss:dev:watch": "tailwindcss --config ./tailwind-dev.config.js -i ./dev/tailwind.css -o ./dev/index.css --watch --minify", "tsc": "tsc", "tsc:watch": "tsc --watch", "custom-elements": "custom-elements-manifest analyze",