Skip to content

Commit

Permalink
Remove debugs
Browse files Browse the repository at this point in the history
  • Loading branch information
saionaro committed Mar 5, 2020
1 parent eb9408e commit edc5aa9
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

- name: Extract version
id: extract_version
uses: Saionaro/[email protected].5
uses: Saionaro/[email protected].6
# From now you can access version
- name: Print version
run: echo ${{ steps.extract_version.outputs.version }}
Expand Down
8 changes: 0 additions & 8 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,9 @@ const workspace = process.env.GITHUB_WORKSPACE;
async function run() {
try {
const packagePath = path.join(workspace, "package.json");

core.debug(packagePath);

const pkg = require(packagePath);

core.debug(pkg);

const version = pkg.version.toString();

core.debug(version);

core.setOutput("version", version);
} catch (error) {
core.setFailed(error.message);
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": "extract-package-version",
"version": "1.0.5",
"version": "1.0.6",
"description": "Allows you to get the npm version of the package in your Github Actions workflow",
"main": "index.js",
"scripts": {
Expand Down
8 changes: 0 additions & 8 deletions src/extract-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,9 @@ const workspace = process.env.GITHUB_WORKSPACE;
async function run() {
try {
const packagePath = path.join(workspace, "package.json");

core.debug(packagePath);

const pkg = require(packagePath);

core.debug(pkg);

const version = pkg.version.toString();

core.debug(version);

core.setOutput("version", version);
} catch (error) {
core.setFailed(error.message);
Expand Down

0 comments on commit edc5aa9

Please sign in to comment.