Skip to content

[CI/CD] Check MetaMask is latest in GHA #1

[CI/CD] Check MetaMask is latest in GHA

[CI/CD] Check MetaMask is latest in GHA #1

name: Check MetaMask is up to date
on:
pull_request:
branches: [main]
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
jobs:
draft-releases:
runs-on: ubuntu-latest
steps:
- name: Checkout repository.
uses: actions/checkout@v3
with:
submodules: 'recursive'
token: ${{ secrets.pat }}
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
ssh://[email protected]/
- name: Authenticate with private NPM package
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Install modules.
run: yarn setup
- name: Check that MetaMask is up to date
run: yarn check:MetaMaskLatest