Skip to content

Commit

Permalink
centralize version tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
baileytincher committed Apr 29, 2021
1 parent 2d3f28a commit 0827b64
Showing 1 changed file with 30 additions and 17 deletions.
47 changes: 30 additions & 17 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [created]

jobs:
server:
bump-version:
name: Deploy editor/server
environment: SLS
runs-on: ubuntu-latest
Expand All @@ -19,7 +19,32 @@ jobs:
run: git config --global user.name "GitHub CD bot"

- name: Set bot git config email
run: git config --global user.email "github-cd-bot@actuallycolab.org"
run: git config --global user.email "github-cd-bot@actuallycolab.org"

- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 12
always-auth: true
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies for root
run: yarn install --frozen-lockfile

- name: Create a new release version
run: yarn version --new-version ${{ github.event.release.tag_name }}
env:
github-token: ${{ secrets.GITHUB_TOKEN }}

server:
name: Deploy editor/server
environment: SLS
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
with:
ref: ${{ github.event.release.target_commitish }}

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
Expand Down Expand Up @@ -67,7 +92,7 @@ jobs:
working-directory: ./server

- name: Create a new release version
run: yarn version --new-version ${{ github.event.release.tag_name }}
run: yarn version --new-version ${{ github.event.release.tag_name }} --no-git-tag-version
working-directory: ./server
env:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -88,12 +113,6 @@ jobs:
with:
ref: ${{ github.event.release.target_commitish }}

- name: Set bot git config name
run: git config --global user.name "GitHub CD bot"

- name: Set bot git config email
run: git config --global user.email "github-cd-bot@actuallycolab.org"

- name: Set up Node.js
uses: actions/setup-node@v1
with:
Expand All @@ -106,7 +125,7 @@ jobs:
working-directory: ./types

- name: Create a new release version
run: yarn version --new-version ${{ github.event.release.tag_name }}
run: yarn version --new-version ${{ github.event.release.tag_name }} --no-git-tag-version
working-directory: ./types
env:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -127,12 +146,6 @@ jobs:
with:
ref: ${{ github.event.release.target_commitish }}

- name: Set bot git config name
run: git config --global user.name "GitHub CD bot"

- name: Set bot git config email
run: git config --global user.email "github-cd-bot@actuallycolab.org"

- name: Set up Node.js
uses: actions/setup-node@v1
with:
Expand All @@ -145,7 +158,7 @@ jobs:
working-directory: ./client

- name: Create a new release version
run: yarn version --new-version ${{ github.event.release.tag_name }}
run: yarn version --new-version ${{ github.event.release.tag_name }} --no-git-tag-version
working-directory: ./client
env:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 0827b64

Please sign in to comment.