Skip to content

Commit 56f5007

Browse files
Using a single action in the entire project
1 parent 8d4e4cd commit 56f5007

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,19 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v2
1313
- name: Build JavaScript file
14-
run: npm ci && npm run build
14+
run: |
15+
npm ci
16+
npm run build
1517
- name: Set environment variables
1618
run: |
1719
echo "TAG_VERSION=$(git describe --abbrev=0)" >> $GITHUB_ENV
1820
echo "CURRENT_VERSION=$(node -e "console.log('v' + require('./package.json').version)")" >> $GITHUB_ENV
1921
echo Env TAG_VERSION ${{ env.TAG_VERSION }} and CURRENT_VERSION ${{ env.CURRENT_VERSION }}
2022
- name: Publish package to NPM
2123
if: ${{ env.TAG_VERSION != env.CURRENT_VERSION }}
22-
run: echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc && npm publish --access public
24+
run: |
25+
echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc
26+
npm publish --access public
2327
env:
2428
NPM_AUTH_TOKEN: ${{ secrets.TOKEN_NPM }}
2529
- name: Create GitHub release
@@ -28,14 +32,10 @@ jobs:
2832
echo ${{ secrets.TOKEN_GITHUB }} > nothing.md
2933
gh auth login --with-token < nothing.md
3034
gh release create ${{ env.CURRENT_VERSION }} -F README.md -t "Released ${{ env.CURRENT_VERSION }}"
31-
github:
32-
runs-on: ubuntu-latest
33-
steps:
34-
- uses: actions/checkout@v2
35-
- run: npm ci
36-
- run: npm run build
37-
- run: npm run build-client
38-
- run: cp CNAME dist/CNAME
35+
- name: Build VueJS project
36+
run: |
37+
npm run build-client
38+
cp CNAME dist/CNAME
3939
- uses: JamesIves/[email protected]
4040
with:
4141
folder: dist

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "json-as-xlsx",
3-
"version": "2.3.7",
3+
"version": "2.3.8",
44
"main": "index.js",
55
"license": "MIT",
66
"types": "types/index.d.ts",

0 commit comments

Comments
 (0)