Skip to content

Commit

Permalink
Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
fwang committed Apr 12, 2024
1 parent a860a03 commit 806d062
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ jobs:
node-version: 20.x

- name: Go Mod
working-directory: ./provider
run: go mod download

- uses: goreleaser/goreleaser-action@v4
working-directory: ./provider
with:
distribution: goreleaser
version: latest
Expand All @@ -44,6 +46,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}
AUR_KEY: ${{ secrets.AUR_KEY }}

- run: make build_nodejs

- run: yarn npm publish
working-directory: ./sdk/nodejs
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
26 changes: 26 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
archives:
- id: archive
name_template: "{{ .Binary }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}"
before:
hooks:
- make tfgen
builds:
- binary: pulumi-resource-namecheap
dir: provider
goarch:
- amd64
- arm64
goos:
- darwin
- windows
- linux
ignore: []
ldflags:
- -X github.com/sst/pulumi-namecheap/provider/pkg/version.Version={{.Tag}}
main: ./cmd/pulumi-resource-namecheap/
sort: asc
use: git
release:
disable: false
snapshot:
name_template: "{{ .Tag }}-SNAPSHOT"
3 changes: 1 addition & 2 deletions scripts/release
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ latest_tag=$(git tag --sort=committerdate | grep -E '[0-9]' | tail -1)

# If there is no tag, exit the script
if [ -z "$latest_tag" ]; then
echo "No tags found"
exit 1
latest_tag=v0.0.0
fi

echo "Latest tag: $latest_tag"
Expand Down

0 comments on commit 806d062

Please sign in to comment.