Skip to content

Commit

Permalink
- Updated actions to node 18 + updated pacakge version to include bui…
Browse files Browse the repository at this point in the history
…ld metadata
  • Loading branch information
FranckyC committed Nov 12, 2024
1 parent 8d7b5fa commit 5331891
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -59,7 +63,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '18'

- name: Install dependencies
run: |
Expand All @@ -85,7 +89,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '18'

- uses: pnpm/action-setup@v2
with:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/components/package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand All @@ -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",
Expand Down

0 comments on commit 5331891

Please sign in to comment.