Skip to content

Commit

Permalink
try publish
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-at-brightnight committed May 29, 2024
1 parent 5d6b669 commit c68dc78
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: '20.12.0'
- name: Cache node modules
Expand All @@ -25,16 +25,20 @@ jobs:
npm install
npm test
# publish:
# runs-on: ubuntu-latest
# needs: [ tests ]
publish:
runs-on: ubuntu-latest
needs: [ tests ]
# if: github.ref == 'refs/heads/main'
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v2
# with:
# node-version: '20.12.0'
# - name: Build
# run: npm run build
# - name: Publish
# run:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '20.12.0'
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@marc-maniac/timediff",
"version": "0.3.5",
"version": "0.3.6",
"description": "Calculate a time difference in several time units.",
"license": "MIT",
"main": "dist/index.js",
Expand Down

0 comments on commit c68dc78

Please sign in to comment.