Skip to content

Commit

Permalink
fix wrong version in description
Browse files Browse the repository at this point in the history
  • Loading branch information
heho committed Feb 9, 2023
1 parent 34ac0f4 commit 65edd03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/npm-gulp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,14 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16.x

- name: add package-version to environment
run: node -p -e '`PACKAGE_VERSION=${require("./package.json").version}`' >> $GITHUB_ENV
- name: Build
run: |
npm install
gulp
- name: package-version
- name: create package-version artifact
run: node -p -e '`${require("./package.json").version}`' >> build/version.txt
- name: package-version environment
run: node -p -e '`PACKAGE_VERSION=${require("./package.json").version}`' >> $GITHUB_ENV
- name: package-version-to-git-tag
uses: pkgdeps/git-tag-action@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ gulp.task('transpile-ts', function () {
return path.relative(path.dirname(file.path), file.base);
}
}))
.pipe(replace('@VERSION@', String(process.env.npm_package_version)))
.pipe(replace('@VERSION@', String(process.env.PACKAGE_VERSION)))
.pipe(replace('@PRIMARY@', String(process.env.THEME_PRIMARY)))
.pipe(replace('@PRIMARY_LIGHT@', String(process.env.THEME_PRIMARY_LIGHT)))
.pipe(replace('@PRIMARY_DARK@', String(process.env.THEME_PRIMARY_DARK)))
Expand Down

0 comments on commit 65edd03

Please sign in to comment.