File tree Expand file tree Collapse file tree 3 files changed +73
-25
lines changed
Expand file tree Collapse file tree 3 files changed +73
-25
lines changed Original file line number Diff line number Diff line change 66 branches :
77 - main
88
9+ env :
10+ REGISTRY : ghcr.io
11+ IMAGE_NAME : ${{ github.repository }}
12+
913jobs :
1014 release :
11- uses : nrkno/github-workflow-semantic-release/.github/workflows/workflow.yaml@v4
12- with :
13- runs-on : ubuntu-22.04
15+ runs-on : ubuntu-latest
16+ permissions :
17+ contents : write
18+ packages : write
19+ attestations : write
20+ id-token : write
21+ issues : write
22+ pull-requests : write
23+ steps :
24+ - name : Checkout repository
25+ uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
26+
27+ - name : Setup Node.js
28+ uses : actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6
29+ with :
30+ node-version : " lts/*"
31+
32+ - name : Install dependencies
33+ run : npm install --save-dev semantic-release @semantic-release/git @semantic-release/github @semantic-release/commit-analyzer @semantic-release/release-notes-generator conventional-changelog-conventionalcommits semantic-release-tags
34+
35+ - name : Run Semantic Release
36+ id : semantic-release
37+ env :
38+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39+ run : |
40+ npx semantic-release
41+ TAGS=$(git tag --points-at HEAD | sed "s|^|${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:|" | xargs | sed 's/ /,/g')
42+ echo "tags=$TAGS" >> $GITHUB_OUTPUT
43+
44+ - name : Log in to the Container registry
45+ uses : docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3
46+ with :
47+ registry : ${{ env.REGISTRY }}
48+ username : ${{ github.actor }}
49+ password : ${{ secrets.GITHUB_TOKEN }}
50+
51+ - name : Set up Docker Buildx
52+ uses : docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3
53+
54+ - name : Build and push Docker image
55+ id : push
56+ uses : docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6
57+ with :
58+ context : .
59+ push : true
60+ tags : |
61+ ${{ steps.semantic-release.outputs.tags }}
Original file line number Diff line number Diff line change @@ -77,25 +77,4 @@ inputs:
7777
7878runs :
7979 using : " docker"
80- image : " Dockerfile"
81- # args:
82- # - --name ${{ inputs.name }}
83- # - --env ${{ inputs.env }}
84- # - --cluster ${{ inputs.cluster }}
85- # - --azure ${{ inputs.azure}}
86- # - --azure-no-arm ${{ inputs.azure-no-arm }}
87- # - --gcp ${{ inputs.gcp }}
88- # - --terraform-registry ${{ inputs.terraform-registry }}
89- # - --no-wait ${{ inputs.no-wait }}
90- # - --eval ${{ inputs.eval }}
91- # - --new-line ${{ inputs.new-line }}
92- # - --debug ${{ inputs.debug }}
93- # - --token ${{ inputs.token }}
94- # - --vault-role-id-name ${{ inputs.vault-role-id-name }}
95- # - --vault-secret-id-name ${{ inputs.vault-secret-id-name }}
96- # - --cache ${{ inputs.cache }}
97- # - --cache-file ${{ inputs.cache-file }}
98- # - --secret ${{ inputs.secret }}
99- # - --vault-secret ${{ inputs.vault-secret }}
100- # - --vault-secret ${{ inputs.vault-secret }}
101- # - --myip-url ${{ inputs.myip-url }}
80+ image : " docker://ghcr.io/nrkno/github-action-setenv:v2.0.0"
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ branches : [ "main" ] ,
3+ plugins : [
4+ "@semantic-release/commit-analyzer" ,
5+ [
6+ "@semantic-release/release-notes-generator" ,
7+ {
8+ preset : "conventionalcommits" ,
9+ writerOpts : {
10+ commitPartial : `* {{header}}
11+ {{#if body}}
12+ _{{{body}}}_
13+ {{/if}}
14+ ` ,
15+ } ,
16+ } ,
17+ ] ,
18+ [ "@semantic-release/github" ] ,
19+ [ "semantic-release-tags" ] ,
20+ ] ,
21+ } ;
You can’t perform that action at this time.
0 commit comments