Skip to content

Commit

Permalink
Use npm pack in npm-test workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <[email protected]>
  • Loading branch information
artonge authored and skjnldsv committed Nov 29, 2021
1 parent 16eacff commit e9e4133
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 42 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/npm-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ jobs:
- name: Install dependencies & build
run: |
npm ci
npm pack
cd tests
npm ci
version=$(cat ../package.json | jq --raw-output .version)
npm install -D ../nextcloud-webpack-vue-config-$version.tgz
npm run dev
npm run build
10 changes: 1 addition & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 4 additions & 30 deletions tests/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions tests/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "webpack-vue-config-test",
"version": "1.0.0",
"main": "js/webpack-vue-config-test-main.js",
"description": "Testing package for the @nextcloud/webpack-vue-config library",
"scripts": {
"build": "NODE_ENV=production webpack --progress --config webpack.js",
Expand All @@ -19,7 +18,6 @@
"@nextcloud/babel-config": "^1.0.0",
"@nextcloud/browserslist-config": "^2.2.0",
"@nextcloud/eslint-config": "^6.1.0",
"@nextcloud/stylelint-config": "^2.0.1",
"@nextcloud/webpack-vue-config": "file:.."
"@nextcloud/stylelint-config": "^2.0.1"
}
}

0 comments on commit e9e4133

Please sign in to comment.