diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b69341f..bb267c2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,12 +8,18 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 with: node-version: '16' registry-url: 'https://npm.pkg.github.com' + - name: Install dependencies run: yarn install --frozen-lockfile + + - name: Build + run: yarn build + - name: Release env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index 6237d35..4d65117 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "dist/index.js", "scripts": { "lint": "eslint --fix */*.{js,ts}", - "build": "tsc", + "build": "yarn run lint && tsc", "hgjson": "tsc && dist/bin/hgjson.js", "semantic-release": "semantic-release" },