Skip to content

Commit

Permalink
Merge pull request #112 from xenit-eu/update-lerna-publishing
Browse files Browse the repository at this point in the history
Try to publish directly from a tag instead of having to checkout main
  • Loading branch information
vierbergenlars authored Oct 18, 2024
2 parents 693d6e1 + 93fb38b commit 17c57c2
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 28 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,4 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run:
if git branch -a --format '%(refname:short)' --contains '${{ github.sha }}' | grep -E '^origin/main$' ; then
git checkout main;
yarn lerna publish ${{ github.ref_name }} --yes --no-push --no-git-tag-version;
else
exit 1;
fi
yarn lerna publish ${{ github.ref_name }} --yes --no-push --no-git-tag-version --force-publish
6 changes: 3 additions & 3 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "0.0.1-alpha.0",
"version": "0.0.0",
"ignoreChanges": ["**/__tests/**"],
"command": {
"version": {
"allowBranch": "main"
"publish": {
"exact": true
}
}
}
4 changes: 2 additions & 2 deletions packages/fetch-hook-authentication/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@contentgrid/fetch-hook-authentication",
"version": "0.0.1-alpha.0",
"version": "0.0.0",
"description": "",
"keywords": [
"fetch",
Expand All @@ -21,7 +21,7 @@
"license": "MIT",
"dependencies": {
"@babel/runtime": "^7.22.10",
"@contentgrid/fetch-hooks": "^0.0.1-alpha.0",
"@contentgrid/fetch-hooks": "^0.0.0",
"@types/whatwg-mimetype": "^3.0.2",
"tslib": "^2.6.1",
"whatwg-mimetype": "^4.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/fetch-hooks/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@contentgrid/fetch-hooks",
"version": "0.0.1-alpha.0",
"version": "0.0.0",
"description": "Insert hooks before/after fetch()",
"keywords": [
"fetch",
Expand Down
6 changes: 3 additions & 3 deletions packages/hal-forms/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@contentgrid/hal-forms",
"version": "0.0.1-alpha.0",
"version": "0.0.0",
"description": "HAL-FORMS models",
"keywords": [
"HAL-FORMS",
Expand Down Expand Up @@ -48,8 +48,8 @@
"license": "MIT",
"dependencies": {
"@babel/runtime": "^7.22.10",
"@contentgrid/hal": "^0.0.1-alpha.0",
"@contentgrid/typed-fetch": "^0.0.1-alpha.0",
"@contentgrid/hal": "^0.0.0",
"@contentgrid/typed-fetch": "^0.0.0",
"tslib": "^2.6.1"
},
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions packages/hal/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@contentgrid/hal",
"version": "0.0.1-alpha.0",
"version": "0.0.0",
"description": "Hypertext Application Language resource models",
"keywords": [
"HAL",
Expand Down Expand Up @@ -37,7 +37,7 @@
"license": "MIT",
"dependencies": {
"@babel/runtime": "^7.22.10",
"@contentgrid/uri-template": "^0.0.1-alpha.0",
"@contentgrid/uri-template": "^0.0.0",
"tslib": "^2.6.1"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/problem-details/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@contentgrid/problem-details",
"version": "0.0.1-alpha.0",
"version": "0.0.0",
"description": "RFC9547 Problem Details types and helpers",
"keywords": [
"RFC7807",
Expand Down
2 changes: 1 addition & 1 deletion packages/typed-fetch/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@contentgrid/typed-fetch",
"version": "0.0.1-alpha.0",
"version": "0.0.0",
"description": "Add typing information to fetch() requests and responses",
"keywords": [
"fetch",
Expand Down
2 changes: 1 addition & 1 deletion packages/uri-template/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@contentgrid/uri-template",
"version": "0.0.1-alpha.0",
"version": "0.0.0",
"description": "RFC6570 URI template parser and expander",
"keywords": [
"RFC6570",
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1499,14 +1499,14 @@ __metadata:
resolution: "@contentgrid/fetch-hook-authentication@workspace:packages/fetch-hook-authentication"
dependencies:
"@babel/runtime": "npm:^7.22.10"
"@contentgrid/fetch-hooks": "npm:^0.0.1-alpha.0"
"@contentgrid/fetch-hooks": "npm:^0.0.0"
"@types/whatwg-mimetype": "npm:^3.0.2"
tslib: "npm:^2.6.1"
whatwg-mimetype: "npm:^4.0.0"
languageName: unknown
linkType: soft

"@contentgrid/fetch-hooks@npm:^0.0.1-alpha.0, @contentgrid/fetch-hooks@workspace:packages/fetch-hooks":
"@contentgrid/fetch-hooks@npm:^0.0.0, @contentgrid/fetch-hooks@workspace:packages/fetch-hooks":
version: 0.0.0-use.local
resolution: "@contentgrid/fetch-hooks@workspace:packages/fetch-hooks"
dependencies:
Expand All @@ -1521,18 +1521,18 @@ __metadata:
resolution: "@contentgrid/hal-forms@workspace:packages/hal-forms"
dependencies:
"@babel/runtime": "npm:^7.22.10"
"@contentgrid/hal": "npm:^0.0.1-alpha.0"
"@contentgrid/typed-fetch": "npm:^0.0.1-alpha.0"
"@contentgrid/hal": "npm:^0.0.0"
"@contentgrid/typed-fetch": "npm:^0.0.0"
tslib: "npm:^2.6.1"
languageName: unknown
linkType: soft

"@contentgrid/hal@npm:^0.0.1-alpha.0, @contentgrid/hal@workspace:packages/hal":
"@contentgrid/hal@npm:^0.0.0, @contentgrid/hal@workspace:packages/hal":
version: 0.0.0-use.local
resolution: "@contentgrid/hal@workspace:packages/hal"
dependencies:
"@babel/runtime": "npm:^7.22.10"
"@contentgrid/uri-template": "npm:^0.0.1-alpha.0"
"@contentgrid/uri-template": "npm:^0.0.0"
tslib: "npm:^2.6.1"
languageName: unknown
linkType: soft
Expand All @@ -1546,7 +1546,7 @@ __metadata:
languageName: unknown
linkType: soft

"@contentgrid/typed-fetch@npm:^0.0.1-alpha.0, @contentgrid/typed-fetch@workspace:packages/typed-fetch":
"@contentgrid/typed-fetch@npm:^0.0.0, @contentgrid/typed-fetch@workspace:packages/typed-fetch":
version: 0.0.0-use.local
resolution: "@contentgrid/typed-fetch@workspace:packages/typed-fetch"
dependencies:
Expand All @@ -1556,7 +1556,7 @@ __metadata:
languageName: unknown
linkType: soft

"@contentgrid/uri-template@npm:^0.0.1-alpha.0, @contentgrid/uri-template@workspace:packages/uri-template":
"@contentgrid/uri-template@npm:^0.0.0, @contentgrid/uri-template@workspace:packages/uri-template":
version: 0.0.0-use.local
resolution: "@contentgrid/uri-template@workspace:packages/uri-template"
dependencies:
Expand Down

0 comments on commit 17c57c2

Please sign in to comment.