Skip to content

Commit

Permalink
fix: Require a frozen lockfile when build (#68)
Browse files Browse the repository at this point in the history
* feat: Add in schema in previos PR: #66

* fix: Require a frozen lockfile when build

"--frozen-lockfile" will make it so that the yarn build process
is reproducible and uses the versions of dependencies defined in
the "yarn.lock" file.
  • Loading branch information
js-lowes committed Sep 22, 2022
1 parent 3fcc396 commit a32cf76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 12
- run: yarn
- run: yarn install --frozen-lockfile
- run: mysql --host 127.0.0.1 --port 3306 -uroot -p -e "CREATE DATABASE casbin"
- run: yarn format:check
- run: yarn lint
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
- name: Run semantic-release
if: github.repository == 'node-casbin/sequelize-adapter' && github.event_name == 'push'
run: |
yarn install --no-lockfile
yarn install --frozen-lockfile
mysql --host 127.0.0.1 --port 3306 -uroot -p -e "CREATE DATABASE casbin"
yarn run prepack
yarn run release
Expand Down

0 comments on commit a32cf76

Please sign in to comment.