diff --git a/.github/workflows/build-lint-test.yml b/.github/workflows/build-lint-test.yml index 1f58221..c7ad206 100644 --- a/.github/workflows/build-lint-test.yml +++ b/.github/workflows/build-lint-test.yml @@ -13,9 +13,9 @@ jobs: matrix: node-version: [16.x, 18.x, 20.5] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e # v2.8.0 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2 with: node-version: ${{ matrix.node-version }} - name: Get Yarn cache directory @@ -25,7 +25,7 @@ jobs: run: echo "::set-output name=YARN_VERSION::$(yarn --version)" id: yarn-version - name: Cache yarn dependencies - uses: actions/cache@v2 + uses: actions/cache@8492260343ad570701412c2f464a5877dc76bace # v2 with: path: ${{ steps.yarn-cache-dir.outputs.YARN_CACHE_DIR }} key: yarn-cache-${{ runner.os }}-${{ steps.yarn-version.outputs.YARN_VERSION }}-${{ hashFiles('yarn.lock') }} diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index c34ce9a..94dc3be 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -21,7 +21,7 @@ jobs: contents: write pull-requests: write steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e # v2.8.0 with: # This is to guarantee that the most recent tag is fetched. # This can be configured to a more reasonable value by consumers. @@ -32,10 +32,10 @@ jobs: - name: Get Node.js version id: nvm run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) - - uses: actions/setup-node@v2 + - uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2 with: node-version: ${{ steps.nvm.outputs.NODE_VERSION }} - - uses: MetaMask/action-create-release-pr@v1 + - uses: MetaMask/action-create-release-pr@c2131cc326cb7e95644b147a107ccb60af87eaf6 # v1.5.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 4e512f9..6c7f809 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -12,7 +12,7 @@ jobs: IS_RELEASE: ${{ steps.is-release.outputs.IS_RELEASE }} runs-on: ubuntu-latest steps: - - uses: MetaMask/action-is-release@v1.0 + - uses: MetaMask/action-is-release@11d06f8247f95cd5a25601b7639b86c60dbe5aab # v1.0 id: is-release publish-release: @@ -22,24 +22,24 @@ jobs: runs-on: ubuntu-latest needs: is-release steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e # v2.8.0 with: ref: ${{ github.sha }} - name: Get Node.js version id: nvm run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) - name: Setup Node - uses: actions/setup-node@v2 + uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2 with: node-version: ${{ steps.nvm.outputs.NODE_VERSION }} - - uses: MetaMask/action-publish-release@v2.0.0 + - uses: MetaMask/action-publish-release@a884600d030879d3bc66aa9946596e93625f9210 # v2.0.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Install run: | yarn install yarn build - - uses: actions/cache@v3 + - uses: actions/cache@6f8efc29b200d32929f49075959781ed54ec270c # v3.5.0 id: restore-build with: path: ./dist @@ -49,10 +49,10 @@ jobs: runs-on: ubuntu-latest needs: publish-release steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e # v2.8.0 with: ref: ${{ github.sha }} - - uses: actions/cache@v3 + - uses: actions/cache@6f8efc29b200d32929f49075959781ed54ec270c # v3.5.0 id: restore-build with: path: ./dist @@ -61,17 +61,17 @@ jobs: - run: npm config set ignore-scripts true - name: Dry Run Publish # omit npm-token token to perform dry run publish - uses: MetaMask/action-npm-publish@v1.1.0 + uses: MetaMask/action-npm-publish@e2ad37bb13f17223eca8738b15a58cba3036f194 # v1.1.0 publish-npm: environment: npm-publish runs-on: ubuntu-latest needs: publish-npm-dry-run steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e # v2.8.0 with: ref: ${{ github.sha }} - - uses: actions/cache@v3 + - uses: actions/cache@6f8efc29b200d32929f49075959781ed54ec270c # v3.5.0 id: restore-build with: path: ./dist @@ -79,6 +79,6 @@ jobs: # Set `ignore-scripts` to skip `prepublishOnly` because the release was built already in the previous job - run: npm config set ignore-scripts true - name: Publish - uses: MetaMask/action-npm-publish@v1.1.0 + uses: MetaMask/action-npm-publish@e2ad37bb13f17223eca8738b15a58cba3036f194 # v1.1.0 with: npm-token: ${{ secrets.NPM_TOKEN }}