mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-10-22 21:54:07 +00:00
Package and publish syn2mas to npm (#2023)
Co-authored-by: Quentin Gliech <quenting@element.io>
This commit is contained in:
1 parent
719060350f
commit
89145d574b
7 files changed
+260
-18
No files matched your search
@@ -251,6 +251,31 @@ jobs:
|
||||
"${{ env.IMAGE }}@${{ fromJSON(steps.bake.outputs.metadata).regular['containerimage.digest'] }}" \
|
||||
"${{ env.IMAGE }}@${{ fromJSON(steps.bake.outputs.metadata).debug['containerimage.digest'] }}" \
|
||||
"${{ env.IMAGE_SYN2MAS }}@${{ fromJSON(steps.bake.outputs.metadata).syn2mas['containerimage.digest'] }}"
|
||||
|
||||
|
||||
syn2mas:
|
||||
name: Release syn2mas on NPM
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout the code
|
||||
uses: actions/checkout@v4.1.0
|
||||
|
||||
- name: Install Node
|
||||
uses: actions/setup-node@v3.8.1
|
||||
with:
|
||||
node-version-file: ./tools/syn2mas/.nvmrc
|
||||
|
||||
- name: Install Node dependencies
|
||||
working-directory: ./tools/syn2mas
|
||||
run: npm ci
|
||||
|
||||
- name: Publish
|
||||
uses: JS-DevTools/npm-publish@v3
|
||||
with:
|
||||
package: ./tools/syn2mas
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
provenance: true
|
||||
dry-run: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
||||
|
||||
|
||||
release:
|
||||
@@ -260,6 +285,7 @@ jobs:
|
||||
needs:
|
||||
- build-binaries
|
||||
- build-image
|
||||
- syn2mas
|
||||
steps:
|
||||
- name: Download the artifacts from the previous job
|
||||
uses: actions/download-artifact@v3
|
||||
@@ -334,4 +360,4 @@ jobs:
|
||||
mas-cli-aarch64-macos.tar.gz
|
||||
mas-cli-x86_64-linux.tar.gz
|
||||
mas-cli-x86_64-macos.tar.gz
|
||||
draft: true
|
||||
draft: true
|
||||
Reference in new issue
Block a user