Skip to content

Commit

Permalink
chore!: bump all default versions (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
acifani authored Oct 27, 2023
1 parent 525c29a commit a72db28
Show file tree
Hide file tree
Showing 7 changed files with 93 additions and 68 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set Node.js 12.x
uses: actions/setup-node@v2.4.1
- name: Set Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 12.x
node-version: 20.x

- name: Install dependencies
run: npm ci
Expand All @@ -39,7 +39,7 @@ jobs:
id: diff

# If index.js was different than expected, upload the expected version as an artifact
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with:
name: dist
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
os: [macos-latest, windows-latest, ubuntu-latest]
tinygo: ['0.29.0', '0.30.0']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.21'
Expand All @@ -24,7 +24,7 @@ jobs:
uses: ./
with:
tinygo-version: ${{ matrix.tinygo }}
binaryen-version: '110'
binaryen-version: '116'

- name: Verify version
run: ./check-version.sh ${{ matrix.tinygo }}
Expand All @@ -40,15 +40,15 @@ jobs:
# TO-DO: implement a stable testing method
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.19'
go-version: '1.21'

- name: setup-tinygo
uses: ./
with:
tinygo-version: '0.27.0'
tinygo-version: '0.30.0'
install-binaryen: 'false'

- name: Binaryen not installed
Expand Down
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ branding:
inputs:
tinygo-version:
description: 'The exact TinyGo version to download and use.'
default: '0.25.0'
default: '0.30.0'
install-binaryen:
description: 'Whether you want to install Binaryen or not.'
default: 'true'
binaryen-version:
description: 'The exact Binaryen version to download and use.'
default: '110'
default: '116'
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
5 changes: 2 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,8 @@ const platformMap = {
darwin: 'macos',
};
function getPlatform() {
var _a;
const platform = os_1.default.platform();
return (_a = platformMap[platform]) !== null && _a !== void 0 ? _a : platform;
return platformMap[platform] ?? platform;
}
exports.getPlatform = getPlatform;
function getArch() {
Expand Down Expand Up @@ -897,7 +896,7 @@ class OidcClient {
.catch(error => {
throw new Error(`Failed to get ID Token. \n
Error Code : ${error.statusCode}\n
Error Message: ${error.result.message}`);
Error Message: ${error.message}`);
});
const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
if (!id_token) {
Expand Down
111 changes: 71 additions & 40 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
"author": "Alessandro Cifani <[email protected]>",
"license": "MIT",
"dependencies": {
"@actions/core": "^1.10.0",
"@actions/core": "^1.10.1",
"@actions/tool-cache": "^2.0.1"
},
"devDependencies": {
"@types/node": "^16.11.6",
"@vercel/ncc": "^0.36.1",
"prettier": "^2.8.7",
"typescript": "^5.0.2"
"@tsconfig/node20": "^20.1.2",
"@types/node": "^20.8.9",
"@vercel/ncc": "^0.38.1",
"prettier": "^3.0.3",
"typescript": "^5.2.2"
}
}
8 changes: 1 addition & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{
"extends": "@tsconfig/node20/tsconfig.json",
"compilerOptions": {
"lib": ["es2019", "es2020.promise", "es2020.bigint", "es2020.string"],
"module": "commonjs",
"target": "es2019",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"outDir": "lib"
}
}

0 comments on commit a72db28

Please sign in to comment.