From b831d95d7245d41e55a6faf84372b9931a8c29c0 Mon Sep 17 00:00:00 2001 From: Grant Birkinbine Date: Thu, 6 Jul 2023 19:31:53 -0600 Subject: [PATCH 1/2] update actions workflow files --- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/lint.yml | 13 +++---------- .github/workflows/lock-sample.yml | 2 +- .github/workflows/package-check.yml | 17 +++-------------- .github/workflows/test.yml | 13 +++---------- .github/workflows/unlock-sample.yml | 2 +- 6 files changed, 12 insertions(+), 37 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 3d266b9..d061301 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -25,7 +25,7 @@ jobs: language: [ 'javascript' ] steps: - - uses: actions/checkout@v3.5.0 + - uses: actions/checkout@v3 - name: Initialize CodeQL uses: github/codeql-action/init@v2 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d6d74c5..a9db263 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,19 +13,12 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3.5.0 - - # check the node version from the .node-version file - - name: fetch node version - id: node-version - run: | - version=$(cat .node-version) - echo "version=${version}" >> $GITHUB_OUTPUT + - uses: actions/checkout@v3 - name: setup node - uses: actions/setup-node@v3.6.0 + uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # pin@v3.6.0 with: - node-version: ${{ steps.node-version.outputs.version }} + node-version-file: .node-version cache: 'npm' - name: install dependencies diff --git a/.github/workflows/lock-sample.yml b/.github/workflows/lock-sample.yml index 6cceaaf..18e508e 100644 --- a/.github/workflows/lock-sample.yml +++ b/.github/workflows/lock-sample.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: # Need to checkout for testing the Action in this repo - - uses: actions/checkout@v3.5.0 + - uses: actions/checkout@v3 # Lock - uses: ./ diff --git a/.github/workflows/package-check.yml b/.github/workflows/package-check.yml index 0acfddd..ef74e02 100644 --- a/.github/workflows/package-check.yml +++ b/.github/workflows/package-check.yml @@ -4,11 +4,7 @@ on: push: branches: - main - paths-ignore: - - "**.md" pull_request: - paths-ignore: - - "**.md" workflow_dispatch: permissions: @@ -19,19 +15,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3.5.0 - - # check the node version from the .node-version file - - name: fetch node version - id: node-version - run: | - version=$(cat .node-version) - echo "version=${version}" >> $GITHUB_OUTPUT + - uses: actions/checkout@v3 - name: setup node - uses: actions/setup-node@v3.6.0 + uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # pin@v3.6.0 with: - node-version: ${{ steps.node-version.outputs.version }} + node-version-file: .node-version cache: 'npm' - name: install dependencies diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a6ada01..7975f89 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,19 +13,12 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3.5.0 - - # check the node version from the .node-version file - - name: fetch node version - id: node-version - run: | - version=$(cat .node-version) - echo "version=${version}" >> $GITHUB_OUTPUT + - uses: actions/checkout@v3 - name: setup node - uses: actions/setup-node@v3.6.0 + uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # pin@v3.6.0 with: - node-version: ${{ steps.node-version.outputs.version }} + node-version-file: .node-version cache: 'npm' - name: install dependencies diff --git a/.github/workflows/unlock-sample.yml b/.github/workflows/unlock-sample.yml index a68b7a9..c45963a 100644 --- a/.github/workflows/unlock-sample.yml +++ b/.github/workflows/unlock-sample.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: # Need to checkout for testing the Action in this repo - - uses: actions/checkout@v3.5.0 + - uses: actions/checkout@v3 # Lock - uses: ./ From f0449ac25787f74f06da5667db3e8d2b5d94317f Mon Sep 17 00:00:00 2001 From: Grant Birkinbine Date: Thu, 6 Jul 2023 19:33:04 -0600 Subject: [PATCH 2/2] fmt --- .eslintrc.json | 33 ++++++++++++++++----------------- .gitattributes | 2 +- .prettierignore | 2 +- 3 files changed, 18 insertions(+), 19 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index bdd7bc3..66c2538 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,19 +1,18 @@ { - "env": { - "commonjs": true, - "es6": true, - "jest": true, - "node": true - }, - "extends": "eslint:recommended", - "globals": { - "Atomics": "readonly", - "SharedArrayBuffer": "readonly" - }, - "parserOptions": { - "ecmaVersion": 2020, - "sourceType": "module" - }, - "rules": { - } + "env": { + "commonjs": true, + "es6": true, + "jest": true, + "node": true + }, + "extends": "eslint:recommended", + "globals": { + "Atomics": "readonly", + "SharedArrayBuffer": "readonly" + }, + "parserOptions": { + "ecmaVersion": 2020, + "sourceType": "module" + }, + "rules": {} } diff --git a/.gitattributes b/.gitattributes index 2e051e1..8f5cb2c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1 @@ -dist/** -diff linguist-generated=true \ No newline at end of file +dist/** -diff linguist-generated=true diff --git a/.prettierignore b/.prettierignore index 2186947..6de9a76 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,3 +1,3 @@ dist/ lib/ -node_modules/ \ No newline at end of file +node_modules/