Skip to content

Commit b6fba50

Browse files
committed
Some cleanup
1 parent c153c71 commit b6fba50

File tree

6 files changed

+13
-14
lines changed

6 files changed

+13
-14
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
4646
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
4747
if [[ "$TAG" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
48-
echo "Error: DOCKER_TAG ($TAG) is not allowed to match `MAJOR.MINOR.PATCH` inside a pull request."
48+
echo "Error: DOCKER_TAG ($TAG) is not allowed to match `MAJOR.MINOR.PATCH` format inside a pull request."
4949
echo "Please rename the docker tag in `action.yml` and try again."
5050
exit 1
5151
fi

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123585,7 +123585,7 @@ module.exports = JSON.parse('{"eN":{"H":"https://github.com/elastic/require-in-t
123585123585
/***/ ((module) => {
123586123586

123587123587
"use strict";
123588-
module.exports = JSON.parse('{"name":"action-release","version":"1.10.5","private":true,"description":"GitHub Action for creating a release on Sentry","main":"dist/index.js","scripts":{"start":"node dist/index.js","build":"ncc build src/main.ts -e @sentry/cli","format":"prettier --write **/*.ts **/*.md","format-check":"prettier --check **/*.ts **/*.md","lint":"eslint src/**/*.ts","test":"jest","all":"yarn run format && yarn run lint && yarn run build && yarn test","bump-docker-tag":"./scripts/set-docker-tag.sh","bump-docker-tag-from-branch":"./scripts/set-branch-docker-tag.sh"},"repository":{"type":"git","url":"git+https://github.com/getsentry/action-release.git"},"keywords":["actions","sentry","release"],"author":"Sentry","license":"MIT","dependencies":{"@actions/core":"^1.11.1","@sentry/node":"^8.54.0","@sentry/cli":"^2.41.1"},"devDependencies":{"@types/jest":"^29.5.6","@types/node":"^20.8.9","@typescript-eslint/parser":"^6.9.0","@vercel/ncc":"^0.38.1","eslint":"^8.52.0","eslint-plugin-github":"^4.10.1","eslint-plugin-jest":"^27.4.3","jest":"^29.7.0","jest-circus":"^29.7.0","js-yaml":"^4.1.0","prettier":"^3.0.3","ts-jest":"^29.1.1","typescript":"^5.2.2"},"volta":{"node":"18.17.0","yarn":"1.22.4"}}');
123588+
module.exports = JSON.parse('{"name":"action-release","version":"1.10.5","private":true,"description":"GitHub Action for creating a release on Sentry","main":"dist/index.js","scripts":{"all":"yarn run format && yarn run lint && yarn run build && yarn test","build":"ncc build src/main.ts -e @sentry/cli","format":"prettier --write **/*.ts **/*.md","format-check":"prettier --check **/*.ts **/*.md","lint":"eslint src/**/*.ts","set-docker-tag":"./scripts/set-docker-tag.sh","set-docker-tag-from-branch":"./scripts/set-docker-tag-from-branch.sh","start":"node dist/index.js","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/getsentry/action-release.git"},"keywords":["actions","sentry","release"],"author":"Sentry","license":"MIT","dependencies":{"@actions/core":"^1.11.1","@sentry/node":"^8.54.0","@sentry/cli":"^2.41.1"},"devDependencies":{"@types/jest":"^29.5.6","@types/node":"^20.8.9","@typescript-eslint/parser":"^6.9.0","@vercel/ncc":"^0.38.1","eslint":"^8.52.0","eslint-plugin-github":"^4.10.1","eslint-plugin-jest":"^27.4.3","jest":"^29.7.0","jest-circus":"^29.7.0","js-yaml":"^4.1.0","prettier":"^3.0.3","ts-jest":"^29.1.1","typescript":"^5.2.2"},"volta":{"node":"18.17.0","yarn":"1.22.4"}}');
123589123589

123590123590
/***/ })
123591123591

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)