Skip to content

Commit

Permalink
feat: prepare initial publication of cli (#1752)
Browse files Browse the repository at this point in the history
* feat: prepare initial publication of cli

* build: try to fix build

* test: try to make node4 ci work

* test: run all ci tasks at once

* fix: bring package.json @types/node back

Co-authored-by: Alexander Fenster <fenster@google.com>
  • Loading branch information
bcoe and alexander-fenster committed Jul 7, 2022
1 parent 2cdbba3 commit 64811d5
Show file tree
Hide file tree
Showing 18 changed files with 457 additions and 388 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/release-cli.yaml
@@ -0,0 +1,42 @@
on:
push:
branches:
- master
name: release-please
jobs:
release-please-pr:
runs-on: ubuntu-latest
steps:
- id: release-pr
uses: google-github-actions/release-please-action@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
package-name: protobufjs-cli
command: release-pr
path: cli
release-please-release:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: tag-release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
package-name: protobufjs-cli
command: github-release
path: cli
- uses: actions/checkout@v2
if: ${{ steps.tag-release.outputs.release_created }}
- uses: actions/setup-node@v1
if: ${{ steps.tag-release.outputs.release_created }}
with:
node-version: 14
registry-url: 'https://wombat-dressing-room.appspot.com/'
- name: publish
if: ${{ steps.tag-release.outputs.release_created }}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_CLI_TOKEN}}
run: |
npm install
npm publish
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Expand Up @@ -21,7 +21,6 @@ jobs:
run: npm run lint:types
build:
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
Expand All @@ -33,7 +32,6 @@ jobs:
run: npm run build
test:
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
node_version: ["4", "4.3.2", "6", "8", "10", "12"]
Expand All @@ -42,6 +40,9 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node_version }}
- name: 'Install the latest @types/node that works'
if: ${{ matrix.node_version == '4' || matrix.node_version == '4.3.2' || matrix.node_version == '6' }}
run: npm install --save --save-exact @types/node@17.0.41
- name: "Install dependencies"
run: npm install
- name: "Test sources"
Expand All @@ -50,7 +51,6 @@ jobs:
run: npm run test:types
bench:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
Expand Down

0 comments on commit 64811d5

Please sign in to comment.