cleanup
This commit is contained in:
parent
f55c7d2393
commit
6fa48df88b
1 changed files with 6 additions and 6 deletions
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
|
|
@ -44,7 +44,7 @@ jobs:
|
|||
fi
|
||||
echo "currentVersion: $currentVersion"
|
||||
echo "isPublished: $isPublished"
|
||||
echo "prerelease: $prerelease"
|
||||
echo "prerelease: ${prerelease}"
|
||||
outputs:
|
||||
published: ${{ steps.check.outputs.published }}
|
||||
prerelease: ${{ steps.check.outputs.prerelease }}
|
||||
|
|
@ -58,7 +58,7 @@ jobs:
|
|||
env:
|
||||
PACKAGE_VERSION: ${{ needs.release-check.outputs.version }}
|
||||
PRERELEASE: ${{ needs.release-check.outputs.prerelease }}
|
||||
DOCKER_TAG: ${{ env.PRERELEASE == 'true' && 'next' || 'latest' }}
|
||||
TAG: ${{ env.PRERELEASE == 'true' && 'next' || 'latest' }}
|
||||
steps:
|
||||
- name: Check out repository ✨
|
||||
uses: actions/checkout@v4
|
||||
|
|
@ -99,7 +99,7 @@ jobs:
|
|||
- name: Publish to NPM
|
||||
run: |
|
||||
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
|
||||
npm publish --access public --tag ${{ env.PRERELEASE == 'true' && 'next' || 'latest' }}
|
||||
npm publish --access public --tag ${{ env.TAG }}
|
||||
env:
|
||||
NPM_TOKEN: ${{ github.event.inputs.npm_token }}
|
||||
|
||||
|
|
@ -123,7 +123,7 @@ jobs:
|
|||
context: .
|
||||
push: true
|
||||
tags: |
|
||||
maptiler/tileserver-gl:${{ env.DOCKER_TAG }},
|
||||
maptiler/tileserver-gl:${{ env.TAG }},
|
||||
maptiler/tileserver-gl:v${{ env.PACKAGE_VERSION }}
|
||||
platforms: linux/arm64,linux/amd64
|
||||
cache-from: type=gha
|
||||
|
|
@ -157,7 +157,7 @@ jobs:
|
|||
working-directory: ./light
|
||||
run: |
|
||||
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
|
||||
npm publish --access public --tag ${{ env.PRERELEASE == 'true' && 'next' || 'latest' }}
|
||||
npm publish --access public --tag ${{ env.TAG }}
|
||||
env:
|
||||
NPM_TOKEN: ${{ github.event.inputs.npm_token }}
|
||||
|
||||
|
|
@ -168,7 +168,7 @@ jobs:
|
|||
file: ./light/Dockerfile
|
||||
push: true
|
||||
tags: |
|
||||
maptiler/tileserver-gl-light:${{ env.DOCKER_TAG }},
|
||||
maptiler/tileserver-gl-light:${{ env.TAG }},
|
||||
maptiler/tileserver-gl-light:v${{ env.PACKAGE_VERSION }}
|
||||
platforms: linux/arm64,linux/amd64
|
||||
cache-from: type=gha
|
||||
|
|
|
|||
Loading…
Reference in a new issue