Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

- uses: 'actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # ratchet:actions/setup-node@v4
with:
node-version: '20.x'
node-version-file: 'package.json'
registry-url: 'https://wombat-dressing-room.appspot.com/'

- env:
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,10 @@ jobs:

- uses: 'actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # ratchet:actions/setup-node@v4
with:
node-version: '20.12.x' # https://github.com/nodejs/node/issues/53033
node-version-file: 'package.json'

- name: 'npm build'
run: 'npm ci && npm run build'

- name: 'npm lint'
# There's no need to run the linter for each operating system, since it
# will find the same thing 9x and clog up the PR review.
if: ${{ matrix.os == 'ubuntu-latest' }}
run: 'npm run lint'

- name: 'npm test'
run: 'npm run test'
2 changes: 1 addition & 1 deletion cmd/compile-versions/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func realMain(ctx context.Context) error {
versionsMap := make(map[string]struct{}, len(names))
for _, name := range names {
sub := versionRe.FindStringSubmatch(name)
if sub == nil || len(sub) < 2 {
if len(sub) < 2 {
// no match
continue
}
Expand Down
5 changes: 3 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
module github.com/google-github-actions/setup-cloud-sdk

go 1.22
toolchain go1.24.1
go 1.23.0

toolchain go1.24.5

require (
cloud.google.com/go/storage v1.40.0
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"module": "dist/index.js",
"main": "dist/index.js",
"types": "dist/index.d.js",
"engines": {
"node": "20.x",
"npm": "10.x"
},
"scripts": {
"build": "rm -rf dist/ && ncc build --source-map --no-source-map-register src/index.ts",
"lint": "eslint .",
Expand Down
Loading