Skip to content

Commit

Permalink
Cleaning up release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rahu619 committed Aug 11, 2023
1 parent 958c8a6 commit f83befb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"

# Commenting out NPM Publish for now
# - name: Publish to NPM
# run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Get package version
id: pkgver
run: echo "::set-output name=version::$(node -p "require('./package.json').version")"
Expand Down Expand Up @@ -50,6 +50,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`.
asset_path: ./your-package-name-${{ steps.pkgver.outputs.version }}.tgz
# asset_path: ./your-package-name-${{ steps.pkgver.outputs.version }}.tgz
asset_name: your-package-name-${{ steps.pkgver.outputs.version }}.tgz
asset_content_type: application/gzip
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Easily convert cron expressions between Unix and Quartz formats with the `cron-converter-u2q` package

![example event parameter](https://github.com/rahu619/cron-converter-u2q/actions/workflows/integration.yml/badge.svg?event=push)
![example event parameter](https://github.com/rahu619/cron-converter-u2q/actions/workflows/release.yml/badge.svg?event=push)
[![NPM version](https://badge.fury.io/js/cron-converter-u2q.svg)](https://www.npmjs.com/package/cron-converter-u2q)

### Features
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cron-converter-u2q",
"version": "0.1.14-alpha",
"version": "0.1.14",
"description": "Converts cron expressions between unix and quartz formats",
"main": "lib/index.js",
"types": "types/index.d.ts",
Expand Down

0 comments on commit f83befb

Please sign in to comment.