mirror of
https://gitea.com/actions/upload-artifact.git
synced 2025-04-22 08:45:33 +08:00
Update .github/workflows/check-dist.yml
Co-authored-by: Konrad Pabjan <konradpabjan@github.com>
This commit is contained in:
parent
66c0216bab
commit
d132704fa3
12
.github/workflows/check-dist.yml
vendored
12
.github/workflows/check-dist.yml
vendored
@ -29,10 +29,14 @@ jobs:
|
||||
with:
|
||||
node-version: 12.x
|
||||
|
||||
- run: npm install
|
||||
- run: mv dist/index.js /tmp
|
||||
- run: npm run release
|
||||
- run: git diff --ignore-all-space dist/index.js /tmp/index.js
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
- name: Move checked in index.js file to tmp directory
|
||||
run: mv dist/index.js /tmp
|
||||
- name: Create new index.js file
|
||||
run: npm run release
|
||||
- name: Compare expected vs actual index.js file
|
||||
run: git diff --ignore-all-space dist/index.js /tmp/index.js
|
||||
id: diff
|
||||
|
||||
# If index.js was different than expected, upload the expected version as an artifact
|
||||
|
Loading…
x
Reference in New Issue
Block a user