Commit graph

263 commits

Author SHA1 Message Date
Rahul Sethi
9003b06015 add versions upload instructions to README 2024-04-03 18:17:45 +01:00
Igor Minar
fd98a7c990
Merge pull request #245 from Cherry/fix/packageManager
docs: remove warning about packageManager and pnpm default
2024-03-26 15:22:04 -07:00
Igor Minar
4bf3047bb8
Update README.md 2024-03-26 11:07:50 -07:00
Igor Minar
f2c22accd3
Update README.md
remote ws
2024-03-26 11:03:23 -07:00
James Ross
0c36639f72
docs: add brief docs about packageManager 2024-03-26 00:31:15 +00:00
James Ross
d5a1abb013
docs: remove warning about packageManager and pnpm default 2024-03-25 22:04:20 +00:00
Jiri Spac
c214b69bae
docs: add warning about packageManager config (#242) 2024-03-11 09:16:06 +00:00
dependabot[bot]
bac2829d42
Bump undici from 5.28.2 to 5.28.3 (#237)
Bumps [undici](https://github.com/nodejs/undici) from 5.28.2 to 5.28.3.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.28.2...v5.28.3)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-19 08:49:35 +00:00
Raphael Boidol
78c994fb95
Update README.md to remove deprecation warnings (#236)
`actions/checkout@v3` runs on node16 which is sunset by GitHub Action runners.
2024-02-16 13:12:01 +00:00
dependabot[bot]
e3434a7e98
Bump vite from 5.0.7 to 5.0.12 (#230)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.0.7 to 5.0.12.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.0.12/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.0.12/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-01 15:23:55 +00:00
lrapoport-cf
08514fdece
Merge pull request #228 from cloudflare/changeset-release/main
Version Packages
2024-01-09 12:32:52 -05:00
github-actions[bot]
7451182d38 Version Packages 2024-01-05 18:08:21 +00:00
Cina Saffary
522c117b7d
Merge pull request #227 from AdiRishi/arishi-secrets-error
(enhancement): Surface inner exception when secret:bulk upload command fails
2024-01-05 12:07:56 -06:00
Adishwar Rishi
b92719544e
Remove extra debug description for err.stack 2024-01-05 18:08:54 +11:00
Adishwar Rishi
bbedd8e54f
Add changeset 2024-01-05 18:06:15 +11:00
Adishwar Rishi
ebaf896045
Improve debug error message for secret:bulk command failure 2024-01-03 13:19:58 +11:00
Adishwar Rishi
7e684fbad9
Surface inner exception when secret:bulk upload command fails 2024-01-03 13:07:49 +11:00
Cina Saffary
2521ec00cc
Merge pull request #220 from davwheat/patch-1
docs: update link to api token generation instructions
2023-12-19 20:10:21 -06:00
David Wheatley
ba0f485178
docs: update link to api token generation instructions 2023-12-20 02:07:57 +00:00
Cina Saffary
2de0b3dfd8
Merge pull request #218 from cloudflare/changeset-release/main
Version Packages
2023-12-19 11:52:32 -06:00
github-actions[bot]
f2d9b652c4 Version Packages 2023-12-13 17:17:49 +00:00
Cina Saffary
0e62acaf21
Merge pull request #213 from GrantBirki/write-results-to-a-file
Save Wrangler Command Output to a Variable
2023-12-13 11:17:24 -06:00
Cina Saffary
bd3857047e
Apply suggestions from code review 2023-12-13 11:15:50 -06:00
GrantBirki
d13856dfc9
add changeset 2023-12-13 10:10:20 -07:00
Grant Birkinbine
f88aee4953
Merge branch 'main' into write-results-to-a-file 2023-12-13 10:04:14 -07:00
Grant Birkinbine
a5f361f3f0
Update src/index.ts
Co-authored-by: Cina Saffary <itscina@gmail.com>
2023-12-13 10:02:54 -07:00
James Ross
9aba9c34da
fix: semver comparison (#216)
* fix: semver comparison

chore: bump dependencies

* chore: add changeset

* fix: update snapshot for error test
2023-12-13 09:53:47 +00:00
Grant Birkinbine
9dd38ad790
Update package.json 2023-12-12 22:34:31 -07:00
Grant Birkinbine
1599928d8e
Update src/index.ts 2023-12-12 22:24:09 -07:00
Grant Birkinbine
0fff39f4b7
Update action.yml
Co-authored-by: Cina Saffary <itscina@gmail.com>
2023-12-12 22:19:53 -07:00
GrantBirki
ca0bf5eeba
properly check for pages deployments 2023-12-07 23:17:03 -07:00
GrantBirki
97c920b38e
parse and set the deployment-url 2023-12-07 22:48:10 -07:00
GrantBirki
11fa60953d
set another output for stderr as it will almost always contain 'some' data 2023-12-07 22:30:51 -07:00
GrantBirki
5ee7b681bc
update readme 2023-12-07 22:27:25 -07:00
GrantBirki
74a612d924
swap from file to output variable 2023-12-07 22:26:06 -07:00
GrantBirki
0558fc8c04
swap to commandOutput 2023-12-07 22:13:33 -07:00
GrantBirki
976ec4d78c
bump minor version 2023-12-01 11:12:34 -07:00
GrantBirki
a8845f6d95
update docs 2023-12-01 11:10:27 -07:00
GrantBirki
8d6fade5ad
save primary wrangler command output to a file (optionally) 2023-12-01 11:04:51 -07:00
Cina Saffary
65996a5230
Merge pull request #205 from cloudflare/cina/184-skip-release-if-tags-exist
Don't attempt to publish when there's no pending release
2023-10-31 10:54:14 -05:00
Cina Saffary
2b7ed1316d Don't trigger release process when there's no release
Currently our release process is kicked off whenever a PR is merged and there are no changesets within the `.changeset` directory. Typically this happens when we intend to publish a release, just after we merge a "Version Packages" PR which removes the changesets and adds the entries to our changelog.

However, this also means that merging any PR without user-facing changes during the period after we've made a release will trigger another release (which luckily fails because the created tag already exists on the remote. See #184).

This change avoids that scenario by fetching tags when checking out the repo. Now when `npx changeset tag` runs, it will see that the tag already exists and skip creating it (`🦋  Skipping tag (already exists):  v3.3.2`). The `git push --tags` step will no longer throw an error ("Everything up-to-date"). And lastly, the publish step won't get triggered because the output from `npx changeset tag` doesn't contain the string `"New tag:"`. The action should just finish successfully with nothing to left do.

Fixes #184
2023-10-31 10:21:29 -05:00
Cina Saffary
9554b3575b
Merge pull request #204 from jgentes/patch-1
Swap CF_API_TOKEN with CLOUDFLARE_API_TOKEN
2023-10-30 15:21:15 -05:00
James Gentes
57159ca2ed updated CF_ACCOUNT_ID 2023-10-30 13:17:34 -07:00
James Gentes
7dd5c3621b
Swap CF_API_TOKEN with CLOUDFLARE_API_TOKEN
If the token isn't specified, wrangler throws this error, indicating the CLOUDFLARE_API_TOKEN should be set, so it's worth being consistent so folks can copy/paste the examples and have it work out of the box:
```
In a non-interactive environment, it's necessary to set a CLOUDFLARE_API_TOKEN environment variable for wrangler to work.
```
2023-10-29 17:34:03 -07:00
Cina Saffary
581e17bc51
Merge pull request #201 from cloudflare/changeset-release/main
Version Packages
2023-10-24 13:45:26 -05:00
github-actions[bot]
21a8414ba3 Version Packages 2023-10-19 17:39:52 +00:00
Cina Saffary
819ea006e6
Merge pull request #171 from cloudflare/cina/refactor-subprocess-exec
Refactor subprocess execution to use `@actions/exec`
2023-10-19 12:39:18 -05:00
Cina Saffary
473d9cbd29 Bump DEFAULT_WRANGLER_VERSION to 3.13.2 2023-10-18 17:04:41 -05:00
Cina Saffary
76d614f400 Add changeset 2023-10-18 16:42:34 -05:00
Cina Saffary
d647227bbc Refactor subprocess execution to use @actions/exec
Instead of using a mix of `child_process.exec`, `child_process.execSync` and a promisified version of `child_process.exec`, we now (mostly) just use `@actions/exec`. That runs `child_process.spawn` under the hood and handles a lot of character escaping for us. We can also now pass Buffers directly into the subprocess as stdin instead of relying on shell piping.

This ends up fixing a few problems we had where secrets and env var values containing shell metacharacters were being misinterpreted.

Unfortunately, `@actions/exec` doesn't support running with a shell. That means we still have to roll our own wrapper around `child_process.exec` to avoid a breaking change to `preCommands` and `postCommands`, since users might be expecting these to run within a shell.

Also worth noting that we're no longer hiding stdout and stderr from the secret uploading step. We were previously doing this out of an abundance of caution, but it made debugging issues very difficult if secret upload failed for some reason. I feel ok doing this since we're no longer echoing & piping the secret values, wrangler doesn't ever output secret values, and as a last line of defense GitHub masks any secret values that accidentally get logged.
2023-10-18 16:42:34 -05:00