Skip to content

Commit

Permalink
Use latest versions of actions
Browse files Browse the repository at this point in the history
- Update `actions/cache` to v4
- Update `MetaMask/action-npm-publish` to v5

The only action that we are not upgrading is `actions-gh-pages`. I am
assuming that we are using a specific commit ID for a reason.
  • Loading branch information
mcmire committed Dec 4, 2024
1 parent aaf5357 commit 5aa77f2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- uses: MetaMask/action-publish-release@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
./dist
Expand All @@ -60,15 +60,15 @@ jobs:
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
./dist
./node_modules/.yarn-state.yml
key: ${{ github.sha }}
- name: Dry Run Publish
# omit npm-token token to perform dry run publish
uses: MetaMask/action-npm-publish@v4
uses: MetaMask/action-npm-publish@v5
with:
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
subteam: S042S7RE4AE # @metamask-npm-publishers
Expand All @@ -94,14 +94,14 @@ jobs:
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
./dist
./node_modules/.yarn-state.yml
key: ${{ github.sha }}
- name: Publish
uses: MetaMask/action-npm-publish@v2
uses: MetaMask/action-npm-publish@v5
with:
# This `NPM_TOKEN` needs to be manually set per-repository.
# Look in the repository settings under "Environments", and set this token in the `npm-publish` environment.
Expand Down

0 comments on commit 5aa77f2

Please sign in to comment.