fix(modules): Fix window not defined #90
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
jobs: | |
publish-npm: | |
name: Publish packages | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9.5.0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: pnpm | |
node-version: 20 | |
registry-url: https://registry.npmjs.org | |
- name: Build | |
run: | | |
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o bin/depker.win.amd64.exe bin/depker.go | |
CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build -o bin/depker.win.arm64.exe bin/depker.go | |
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/depker.linux.amd64 bin/depker.go | |
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o bin/depker.linux.arm64 bin/depker.go | |
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o bin/depker.mac.amd64 bin/depker.go | |
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o bin/depker.mac.arm64 bin/depker.go | |
- name: Publish | |
run: pnpm --package=@semantic-release/git --package=semantic-release-replace-plugin --package=semantic-release dlx semantic-release --branches master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |