Skip to content

Commit

Permalink
fix(release): Build package before publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian7843 committed Sep 7, 2021
1 parent 8972e83 commit bd00356
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit bd00356

Please sign in to comment.