Skip to content

Commit

Permalink
fix: Try combined workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenh committed May 28, 2022
1 parent 5b4f4fa commit c293c1f
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 42 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/buf.yml

This file was deleted.

34 changes: 30 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x]
node-version: [14.x, 16.x]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
with:
token: ${{ secrets.ADMIN_TOKEN }}
- name: Use Node.js ${{ matrix.node-version }}
Expand Down Expand Up @@ -50,13 +50,13 @@ jobs:
needs: [build]
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: 16.x
- name: Install
run: yarn install
- name: Build
Expand All @@ -66,3 +66,29 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.ADMIN_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

push_to_buf_registry:
name: Push Docker image to Buf Registry
runs-on: ubuntu-latest
needs: [release]
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Log in to Buf Plugin Registry
uses: docker/login-action@v2
with:
registry: plugins.buf.build
username: ${{ secrets.BUF_USERNAME }}
password: ${{ secrets.BUF_PASSWORD }}

- name: Build Plugin image
run: docker build
--file ts-proto.Dockerfile
--tag plugins.buf.build/${{ secrets.BUF_USERNAME }}/ts-proto:${RELEASE_VERSION}-0
"."

- name: Push to Buf Registry
env:
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
run: docker push plugins.buf.build/${{ secrets.BUF_USERNAME }}/ts-proto:${RELEASE_VERSION}-0
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"@nestjs/microservices": "^8.2.2",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/commit-analyzer": "^8.0.1",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^9.0.0",
"@semantic-release/github": "^7.2.0",
"@semantic-release/npm": "^7.1.0",
Expand Down
1 change: 1 addition & 0 deletions release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ module.exports = {
'@semantic-release/npm',
'@semantic-release/github',
'@semantic-release/git',
['@semantic-release/exec', { publishCmd: 'echo "RELEASE_VERSION=${nextRelease.version}" >> $GITHUB_ENV' }],
],
};
17 changes: 17 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,23 @@
resolved "https://registry.npmjs.org/@semantic-release/error/-/error-2.2.0.tgz"
integrity sha512-9Tj/qn+y2j+sjCI3Jd+qseGtHjOAeg7dU2/lVcqIQ9TV3QDaDXDYXcoOHU+7o2Hwh8L8ymL4gfuO7KxDs3q2zg==

"@semantic-release/error@^3.0.0":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@semantic-release/error/-/error-3.0.0.tgz#30a3b97bbb5844d695eb22f9d3aa40f6a92770c2"
integrity sha512-5hiM4Un+tpl4cKw3lV4UgzJj+SmfNIDCLLw0TepzQxz9ZGV5ixnqkzIVF+3tp0ZHgcMKE+VNGHJjEeyFG2dcSw==

"@semantic-release/exec@^6.0.3":
version "6.0.3"
resolved "https://registry.yarnpkg.com/@semantic-release/exec/-/exec-6.0.3.tgz#d212fdf19633bdfb553de6cb6c7f8781933224db"
integrity sha512-bxAq8vLOw76aV89vxxICecEa8jfaWwYITw6X74zzlO0mc/Bgieqx9kBRz9z96pHectiTAtsCwsQcUyLYWnp3VQ==
dependencies:
"@semantic-release/error" "^3.0.0"
aggregate-error "^3.0.0"
debug "^4.0.0"
execa "^5.0.0"
lodash "^4.17.4"
parse-json "^5.0.0"

"@semantic-release/git@^9.0.0":
version "9.0.0"
resolved "https://registry.npmjs.org/@semantic-release/git/-/git-9.0.0.tgz"
Expand Down

0 comments on commit c293c1f

Please sign in to comment.