Skip to content

Commit 9d7df48

Browse files
committed
Some cleanup
1 parent c153c71 commit 9d7df48

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

docs/development.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,13 @@ Telemetry for internal development is collected using `@sentry/node`, see `src/t
4040
Members of this repo will not have to set anything up since [the integration](https://sentry-ecosystem.sentry.io/settings/developer-settings/end-to-end-action-release-integration-416eb2/) is already set-up. Just open the PR and you will see [a release created](https://sentry-ecosystem.sentry.io/releases/?project=4505075304693760) for your PR.
4141

4242
> [!WARNING]
43-
> After you create a branch **ALWAYS** run `yarn bump-docker-tag-from-branch`.
44-
> This is **very important**. You should avoid publishing changes to an already existing docker image,
45-
> especially to docker images tagged with release versions, e.g. `1.11.0`.
46-
>
47-
> **Never** write a version tag into `action.yml` yourself, let the release process handle this.
43+
> After you create a branch **ALWAYS** run `yarn set-docker-tag-from-branch`.
44+
> This is **very important**. You should avoid publishing changes to an already existing docker image.
45+
>
46+
> Docker tags in action.yml that match `MAJOR.MINOR.PATCH` will be rejected by the CI on pull requests.
4847
4948
1. Create a branch
50-
2. Run `yarn bump-docker-tag-from-branch` to set a docker tag based on your github branch name. This is important so that the action gets its own Docker image, allowing you to test the action in a different repo.
49+
2. Run `yarn set-docker-tag-from-branch` to set a docker tag based on your github branch name. This is important so that the action gets its own Docker image, allowing you to test the action in a different repo.
5150
3. Make changes
5251
4. If possible, add unit and E2E tests (inside `.github/workflows/build.yml`)
5352
5. Run `yarn install` to install deps

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
"description": "GitHub Action for creating a release on Sentry",
66
"main": "dist/index.js",
77
"scripts": {
8-
"start": "node dist/index.js",
8+
"all": "yarn run format && yarn run lint && yarn run build && yarn test",
99
"build": "ncc build src/main.ts -e @sentry/cli",
1010
"format": "prettier --write **/*.ts **/*.md",
1111
"format-check": "prettier --check **/*.ts **/*.md",
1212
"lint": "eslint src/**/*.ts",
13-
"test": "jest",
14-
"all": "yarn run format && yarn run lint && yarn run build && yarn test",
15-
"bump-docker-tag": "./scripts/set-docker-tag.sh",
16-
"bump-docker-tag-from-branch": "./scripts/set-branch-docker-tag.sh"
13+
"set-docker-tag": "./scripts/set-docker-tag.sh",
14+
"set-docker-tag-from-branch": "./scripts/set-docker-tag-from-branch.sh",
15+
"start": "node dist/index.js",
16+
"test": "jest"
1717
},
1818
"repository": {
1919
"type": "git",

scripts/craft-pre-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ npm version "${NEW_VERSION}"
1818
yarn install && yarn build
1919

2020
# Update the docker tag in action.yml
21-
yarn bump-docker-tag "${NEW_VERSION}"
21+
yarn set-docker-tag "${NEW_VERSION}"
File renamed without changes.

0 commit comments

Comments
 (0)