Skip to content

Commit a7fc434

Browse files
committed
Testing changes to workflows
1 parent 53bcac9 commit a7fc434

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ jobs:
88
release:
99
runs-on: ubuntu-latest
1010

11+
permissions:
12+
contents: write
13+
1114
steps:
1215
- uses: actions/checkout@v4
1316

@@ -27,15 +30,15 @@ jobs:
2730

2831
- name: Tag
2932
if: ${{ !steps.semver.outputs.prerelease && steps.semver.outputs.version }}
30-
uses: richardsimko/update-tag@v1.0.4
33+
uses: richardsimko/update-tag@v1.0.11
3134
with:
3235
tag_name: ${{ format('v{0}', steps.semver.outputs.major) }}
3336
env:
3437
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3538

3639
- name: Tag latest
3740
if: ${{ !steps.semver.outputs.prerelease && steps.semver.outputs.version }}
38-
uses: richardsimko/update-tag@v1.0.4
41+
uses: richardsimko/update-tag@v1.0.11
3942
with:
4043
tag_name: latest
4144
env:

.github/workflows/tag.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
release:
1010
runs-on: ubuntu-latest
1111

12+
permissions:
13+
contents: write
14+
1215
steps:
1316
- name: Get the version
1417
id: version
@@ -22,10 +25,7 @@ jobs:
2225

2326
- name: Release
2427
if: ${{ steps.semver.outputs.version }}
25-
uses: actions/create-release@v1
26-
env:
27-
GITHUB_TOKEN: ${{ secrets.RELEASE_GH_TOKEN }}
28+
uses: softprops/action-gh-release@v1
2829
with:
2930
tag_name: ${{ steps.version.outputs.VERSION }}
30-
release_name: ${{ steps.version.outputs.VERSION }}
3131
prerelease: ${{ !!steps.semver.outputs.prerelease }}

CONTRIBUTING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44

55
Create a new tag, following semver and prefixed with `v`. On push, workflows will create associated tags and releases. After the release is created, edit it through GitHub and make sure "Publish this Action to the GitHub Marketplace" is checked.
66

7+
## Credential creation
8+
9+
`DEPENDABOT_GITHUB_TOKEN`:
10+
11+
* Actions: Access: Read and write
12+
* Contents: Access: Read and write
13+
* Metadata: Access: Read-only
14+
715
## Notes
816

917
I use `.split(search).join(replace)` instead of `.replace(search, replace)` to avoid unintentional behavior to to `.replace`'s [replacement string semantics](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#specifying_a_string_as_the_replacement).

0 commit comments

Comments
 (0)