File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 58
58
- run : npm run publish-all
59
59
env :
60
60
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
61
+
62
+ publish-github-container-registry :
63
+ runs-on : ubuntu-latest
64
+ if : github.event_name == 'release'
65
+ environment : release
66
+ needs : build
67
+ permissions :
68
+ contents : write
69
+ id-token : write
70
+ steps :
71
+ - uses : actions/checkout@v4
72
+
73
+ - name : Log in to the Container registry
74
+ uses : docker/login-action@v3
75
+ with :
76
+ registry : ghcr.io
77
+ username : ${{ github.actor }}
78
+ password : ${{ secrets.GITHUB_TOKEN }}
79
+
80
+ - name : Extract metadata (tags, labels) for Docker
81
+ id : meta
82
+ uses : docker/metadata-action@v5
83
+ with :
84
+ images : ghcr.io/${{ github.repository }}
85
+
86
+ - name : Build and push Docker image
87
+ id : push
88
+ uses : docker/build-push-action@v6
89
+ with :
90
+ context : .
91
+ push : true
92
+ tags : ${{ steps.meta.outputs.tags }}
93
+ labels : ${{ steps.meta.outputs.labels }}
94
+
95
+ - name : Generate artifact attestation
96
+ uses : actions/attest-build-provenance@v2
97
+ with :
98
+ subject-name : ghcr.io/${{ github.repository }}
99
+ subject-digest : ${{ steps.push.outputs.digest }}
100
+ push-to-registry : true
You can’t perform that action at this time.
0 commit comments