Merge pull request #201 from mbret/develop #209
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Web Release" | |
on: | |
push: | |
branches: | |
- "master" | |
jobs: | |
bump-version: | |
name: "Bump Version" | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout source code" | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.ref }} | |
- name: "cat package.json" | |
run: cat ./package.json | |
- name: "Automated Version Bump" | |
id: version-bump | |
uses: "phips28/[email protected]" | |
with: | |
tag-prefix: "web-" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
PACKAGEJSON_DIR: "packages/web" | |
- name: "cat package.json" | |
run: cat ./package.json | |
- name: "Output Step" | |
env: | |
NEW_TAG: ${{ steps.version-bump.outputs.newTag }} | |
run: echo "new tag $NEW_TAG" | |
deploy-vercel: | |
name: "Deploy vercel" | |
needs: [bump-version] | |
uses: ./.github/workflows/_deploy-vercel.yml | |
secrets: | |
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} |