Skip to content

Commit 8d4e4cd

Browse files
Simplifying usage of main.yml without ssh key
1 parent 57cbc9e commit 8d4e4cd

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,19 @@ jobs:
99
deploy:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: LuisEnMarroquin/[email protected]
13-
with:
14-
SSHKEY: ${{ secrets.SSH_GITHUB }}
15-
- run: git clone [email protected]:LuisEnMarroquin/json-as-xlsx.git .
12+
- uses: actions/checkout@v2
1613
- name: Build JavaScript file
1714
run: npm ci && npm run build
1815
- name: Set environment variables
1916
run: |
2017
echo "TAG_VERSION=$(git describe --abbrev=0)" >> $GITHUB_ENV
2118
echo "CURRENT_VERSION=$(node -e "console.log('v' + require('./package.json').version)")" >> $GITHUB_ENV
22-
echo Environment has TAG_VERSION ${{ env.TAG_VERSION }} and CURRENT_VERSION ${{ env.CURRENT_VERSION }}
23-
# - name: Create tag with Git
24-
# if: ${{ env.TAG_VERSION != env.CURRENT_VERSION }}
25-
# run: |
26-
# git tag -a -m "Published ${{ env.CURRENT_VERSION }}" ${{ env.CURRENT_VERSION }}
27-
# git push --follow-tags
28-
# - name: Publish package to NPM
29-
# if: ${{ env.TAG_VERSION != env.CURRENT_VERSION }}
30-
# run: echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc && npm publish --access public
31-
# env:
32-
# NPM_AUTH_TOKEN: ${{ secrets.TOKEN_NPM }}
19+
echo Env TAG_VERSION ${{ env.TAG_VERSION }} and CURRENT_VERSION ${{ env.CURRENT_VERSION }}
20+
- name: Publish package to NPM
21+
if: ${{ env.TAG_VERSION != env.CURRENT_VERSION }}
22+
run: echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc && npm publish --access public
23+
env:
24+
NPM_AUTH_TOKEN: ${{ secrets.TOKEN_NPM }}
3325
- name: Create GitHub release
3426
if: ${{ env.TAG_VERSION != env.CURRENT_VERSION }}
3527
run: |

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.6",
3+
"version": "2.3.7",
44
"main": "index.js",
55
"license": "MIT",
66
"types": "types/index.d.ts",

0 commit comments

Comments
 (0)