From 5747f68b8af498822709d879bcfa6fdc0867dd23 Mon Sep 17 00:00:00 2001 From: Dave Shanley Date: Wed, 20 Jul 2022 06:47:18 -0400 Subject: [PATCH] Working on pipeline to improve automation this workflow will be used repeatedly for all pb33f products. --- .github/workflows/npm-publish.yml | 7 ++-- .goreleaser.yaml | 53 +++++++------------------------ 2 files changed, 17 insertions(+), 43 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index a002c8d0..5339963d 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -1,7 +1,10 @@ name: "NPM Publish" -on: push - +on: + push: + # run only against tags + tags: + - '*' jobs: publish: runs-on: ubuntu-latest diff --git a/.goreleaser.yaml b/.goreleaser.yaml index efe4360c..3ca7077f 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,5 +1,4 @@ -# This is an example .goreleaser.yml file with some sensible defaults. -# Make sure to check the documentation at https://goreleaser.com +project_name: vacuum before: hooks: # You may remove this if you don't use go modules. @@ -20,8 +19,7 @@ archives: amd64: x86_64 checksum: name_template: 'checksums.txt' -snapshot: - name_template: "{{ incpatch .Version }}-next" + changelog: sort: asc filters: @@ -29,47 +27,20 @@ changelog: - '^docs:' - '^test:' brews: - - - # Name template of the recipe - # Default to project name - name: vacuum - - # GitHub/GitLab repository to push the formula to - tap: + - tap: owner: daveshanley name: homebrew-vacuum - - # Optionally a branch can be provided. - # Defaults to the default repository branch. - branch: main - token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}" - # The project name and current git tag are used in the format string. - commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}" - - # Folder inside the repository to put the formula. - # Default is the root folder. - folder: Formula + commit_author: + name: goreleaserbot + email: goreleaser@quobix.com - # Your app's homepage. - # Default is empty. - homepage: "https://quobix.com/vacuum/" + homepage: "https://quobix.com/vacuum" + description: "The worlds fastest and most scalable OpenAPI linter" - # Template of your app's description. - # Default is empty. - description: "The world's fastes, most scalable and industrial strength OpenAPI linter in the world." - - # SPDX identifier of your app's license. - # Default is empty. - license: "MIT" - - # So you can `brew test` your formula. - # Default is empty. - test: | - system "#{bin}/vacuum --version" - - # Custom install script for brew. - # Default is 'bin.install "program"'. install: | - bin.install "vacuum" \ No newline at end of file + bin.install "vacuum" + +snapshot: + name_template: "{{ .Tag }}" \ No newline at end of file