Skip to content

Commit

Permalink
Try to publish directly from a tag instead of having to checkout main
Browse files Browse the repository at this point in the history
  • Loading branch information
vierbergenlars committed Oct 14, 2024
1 parent 85d61c4 commit 01f3610
Show file tree
Hide file tree
Showing 10 changed files with 1,035 additions and 1,249 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,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", "typescript", "hooks"],
"main": "./build/index.js",
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", "HAL", "json", "rest", "hypermedia", "HATEOAS"],
"main": "./build/index.js",
Expand Down Expand Up @@ -40,8 +40,8 @@
},
"license": "MIT",
"dependencies": {
"@contentgrid/typed-fetch": "^0.0.1-alpha.0",
"@contentgrid/hal": "^0.0.1-alpha.0",
"@contentgrid/typed-fetch": "^0.0.0",
"@contentgrid/hal": "^0.0.0",
"@babel/runtime": "^7.22.10",
"tslib": "^2.6.1"
},
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", "json", "rest", "hypermedia", "HATEOAS"],
"main": "./build/index.js",
Expand Down Expand Up @@ -31,7 +31,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", "RFC9547", "problem", "problem-details"],
"main": "./build/index.js",
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", "typescript"],
"main": "./build/index.js",
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", "uri-template", "uri"],
"main": "./build/index.js",
Expand Down
2,249 changes: 1,020 additions & 1,229 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 01f3610

Please sign in to comment.