Skip to content

Commit

Permalink
publish tags (#3471)
Browse files Browse the repository at this point in the history
* wip - cleanup debugging

* version files when publishing next

* use simplified tagging as documented at https://github.com/changesets/changesets/blob/main/docs/command-line-options.md#git-tags

* Update .github/workflows/update_template.yml

Co-authored-by: Rich Harris <[email protected]>

* add private: true to all packaging fixtures

* lint

* do the minimal thing required to release tags, and go from there

Co-authored-by: Antony Jones <[email protected]>
Co-authored-by: Rich Harris <[email protected]>
  • Loading branch information
3 people authored Jan 28, 2022
1 parent 27239fa commit 1793949
Show file tree
Hide file tree
Showing 16 changed files with 41 additions and 31 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/update_template.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Update Template

on:
workflow_run:
workflows: [Release]
types:
- completed
workflow_dispatch:
push:
tags:
- create-svelte@*

jobs:
release:
Expand Down Expand Up @@ -51,9 +49,8 @@ jobs:
- name: Publish
working-directory: ${{ github.workspace }}/template
run: |
touch "generated-$(date +%s)"
git config user.email "[email protected]"
git config user.name "[bot]"
git add -A
git commit -m "version $npm_package_version"
git commit -m "create-svelte version ${{ github.ref_name }}"
git push -u origin main -f
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
"check": "pnpm -r check",
"lint": "pnpm -r lint",
"format": "pnpm -r format",
"release": "pnpm publish --tag=next --filter=\"@sveltejs/*\" --filter=\"create-svelte\"",
"preview:docs": "action-deploy-docs --project=kit",
"changeset:version": "changeset version && pnpm i --lockfile-only"
"release": "pnpm changeset publish --tag=next --filter=\"@sveltejs/*\" --filter=\"create-svelte\"",
"preview:docs": "action-deploy-docs --project=kit"
},
"repository": {
"type": "git",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"./Test2.svelte": "./Test2.svelte",
".": "./index.js"
},
"svelte": "./index.js"
}
"svelte": "./index.js",
"private": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"private": true,
"version": "1.0.0",
"description": "emitTypes settings disabled",
"type": "module"
"type": "module",
"private": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@
"./package.json": "./package.json"
},
"type": "module",
"svelte": "./index.js"
}
"svelte": "./index.js",
"private": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
},
"./constants": "./internal/constants.js",
"./Test": "./Test.svelte"
}
},
"private": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
},
"./package.json": "./package.json"
},
"svelte": "./Test.svelte"
}
"svelte": "./Test.svelte",
"private": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"import": "./index.js"
}
},
"svelte": "./Test.svelte"
"svelte": "./Test.svelte",
"private": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"./Test.svelte": "./Test.svelte",
".": "./index.js"
},
"svelte": "./index.js"
}
"svelte": "./index.js",
"private": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"private": true,
"version": "1.0.0",
"description": "files.exclude settings configured",
"type": "module"
"type": "module",
"private": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
"./utils": "./utils.js",
".": "./index.js"
},
"svelte": "./index.js"
}
"svelte": "./index.js",
"private": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"name": "javascript",
"private": true,
"version": "1.0.0",
"description": "standard javascript package"
"description": "standard javascript package",
"private": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"./sub/bar": "./sub/bar.js",
"./sub/foo": "./sub/foo.js"
},
"svelte": "./index.js"
}
"svelte": "./index.js",
"private": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"private": true,
"version": "1.0.0",
"description": "package using $lib alias",
"type": "module"
"type": "module",
"private": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"./utils": "./utils.js",
".": "./index.js"
},
"svelte": "./index.js"
}
"svelte": "./index.js",
"private": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"private": true,
"version": "1.0.0",
"description": "standard typescript package",
"type": "module"
"type": "module",
"private": true
}

0 comments on commit 1793949

Please sign in to comment.