Skip to content

Commit

Permalink
chore: reset release v7 workflow and set tag "latest-v7" to all publi…
Browse files Browse the repository at this point in the history
…shable package.json files (#3525)
  • Loading branch information
oliverschuerch authored Oct 7, 2024
1 parent 055706d commit 279f171
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 24 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,7 @@ jobs:
# This will fail the build if something in the publish setup is not correct
# before changeset magic is starting to run
- name: Test publish step
id: publish
run: |
branch=$(git rev-parse --symbolic-full-name --abbrev-ref HEAD);
if [ $branch != 'main' ];
then
echo "command=pnpm changeset publish --tag latest-${branch:8:2}" >> "$GITHUB_OUTPUT";
pnpm -r publish --publish-branch $branch --tag latest-${branch:8:2} --dry-run;
else
echo "command=pnpm changeset:publish" >> "$GITHUB_OUTPUT";
pnpm -r publish --dry-run;
fi
run: pnpm -r publish --dry-run

# The changeset action will behave differently based on whether there are
# new changesets on the github.ref branch:
Expand All @@ -52,7 +41,7 @@ jobs:
with:
title: 'chore(changesets): 🦋📦 publish packages (${{ github.ref_name }})'
commit: 'chore(changesets): publish packages'
publish: ${{ steps.publish.outputs.command }}
publish: pnpm changeset:publish
version: pnpm changeset:version

- name: Create Summary
Expand Down
3 changes: 2 additions & 1 deletion packages/changelog-github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"url": "https://github.com/swisspost/design-system/issues"
},
"publishConfig": {
"access": "public"
"access": "public",
"tag": "latest-v7"
},
"main": "./dist/index.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion packages/components-angular/projects/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"publishConfig": {
"directory": "../../dist/components",
"access": "public",
"linkDirectory": true
"linkDirectory": true,
"tag": "latest-v7"
},
"dependencies": {
"tslib": "2.6.3",
Expand Down
3 changes: 2 additions & 1 deletion packages/components-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
],
"publishConfig": {
"access": "restricted",
"linkDirectory": true
"linkDirectory": true,
"tag": "latest-v7"
},
"scripts": {
"build": "pnpm run clean && pnpm run compile",
Expand Down
3 changes: 2 additions & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
],
"publishConfig": {
"access": "public",
"linkDirectory": true
"linkDirectory": true,
"tag": "latest-v7"
},
"scripts": {
"dev": "stencil build --dev --port 9200 --serve --watch --docs --docs-readme",
Expand Down
3 changes: 2 additions & 1 deletion packages/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
},
"publishConfig": {
"access": "public",
"linkDirectory": true
"linkDirectory": true,
"tag": "latest-v7"
},
"files": [
"public"
Expand Down
3 changes: 2 additions & 1 deletion packages/internet-header/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"collection:main": "dist/collection/index.js",
"unpkg": "dist/swisspost-internet-header/swisspost-internet-header.esm.js",
"publishConfig": {
"access": "public"
"access": "public",
"tag": "latest-v7"
},
"files": [
"dist/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"publishConfig": {
"directory": "../../dist/intranet-header",
"access": "public",
"linkDirectory": true
"linkDirectory": true,
"tag": "latest-v7"
},
"dependencies": {
"@swisspost/design-system-styles": "workspace:7.4.2",
Expand Down
3 changes: 2 additions & 1 deletion packages/migrations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"dist/"
],
"publishConfig": {
"access": "public"
"access": "public",
"tag": "latest-v7"
},
"scripts": {
"copy-files": "copyfiles -f LICENSE README.md package.json CONTRIBUTING.md CHANGELOG.md src/migrations.json dist",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"publishConfig": {
"directory": "../../dist/styles-primeng",
"access": "public",
"linkDirectory": true
"linkDirectory": true,
"tag": "latest-v7"
},
"peerDependencies": {
"@angular/common": "^17.0.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/styles/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"publishConfig": {
"directory": "./dist",
"access": "public",
"linkDirectory": true
"linkDirectory": true,
"tag": "latest-v7"
},
"scripts": {
"start": "gulp watch",
Expand Down
3 changes: 2 additions & 1 deletion packages/tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"publishConfig": {
"directory": "./dist",
"access": "restricted",
"linkDirectory": true
"linkDirectory": true,
"tag": "latest-v7"
},
"devDependencies": {
"@tokens-studio/sd-transforms": "0.16.1",
Expand Down

0 comments on commit 279f171

Please sign in to comment.