-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add release workflow #1444
Add release workflow #1444
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
release: | ||
name: 'Tagged Release' | ||
runs-on: 'ubuntu-latest' | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: wyvox/action-setup-pnpm@v3 | ||
with: | ||
node-registry-url: "https://registry.npmjs.org" | ||
- run: pnpm build | ||
|
||
# > This is not interactive right? | ||
# correct | ||
# | ||
# > This doesn't bump the version, just publish right? | ||
# correct | ||
# | ||
# > Do we have a way to tell it to ignore already published packages in case we need to re-run the job? | ||
# this is default behavior | ||
# | ||
# > It will skip the private packages, presumably? | ||
# yes | ||
- run: pnpm -r publish --access public | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just to be sure:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
correct
correct
this is default behavior
I ran: ❯ pnpm -r publish --access public --dry-run --report-summary
npm notice
npm notice 📦 @glimmer/[email protected]
npm notice === Tarball Contents ===
npm notice 1.1kB LICENSE
npm notice 183B index.ts
npm notice 4.7kB lib/debug.ts
npm notice 6.1kB lib/metadata.ts
npm notice 20.4kB lib/opcode-metadata.ts
npm notice 9.1kB lib/stack-check.ts
npm notice 790B package.json
npm notice 105B rollup.config.mjs
npm notice === Tarball Details ===
npm notice name: @glimmer/debug
npm notice version: 0.84.3
npm notice filename: glimmer-debug-0.84.3.tgz
npm notice package size: 9.0 kB
npm notice unpacked size: 42.4 kB
npm notice shasum: f0be584eb09eea00415382027224b8fc7a112eca
npm notice integrity: sha512-ecOfKPCirzSZ8[...]99tjiPjwaxmDw==
npm notice total files: 8
npm notice
npm notice Publishing to https://registry.npmjs.org/ with tag latest and public access (dry-run)
+ @glimmer/[email protected]
Which... seems ok given the number of private packages?
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to pass it the NPM token somehow. I'll add it as
secrets.NPM_TOKEN
and you can figure out how to get it to the right place?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup! -- added
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
NPM_TOKEN