From 41ab8098bbe3729f8a3ba12237d61e7016c90710 Mon Sep 17 00:00:00 2001 From: Lukasz Gornicki Date: Mon, 4 Nov 2024 20:32:23 +0100 Subject: [PATCH 1/2] Revert "fix: global installs do not work as I expected (#319)" This reverts commit 9dd38e48f4dcd488a5b7bf3fd070006d5a949c98. --- .github/actions/slackify-markdown/action.yml | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/.github/actions/slackify-markdown/action.yml b/.github/actions/slackify-markdown/action.yml index 9449cc7a..7279ee56 100644 --- a/.github/actions/slackify-markdown/action.yml +++ b/.github/actions/slackify-markdown/action.yml @@ -19,21 +19,12 @@ runs: uses: actions/setup-node@v3 with: node-version: 16 - - name: Create and initialize slackify directory - shell: bash - run: | # We need to create a directory to install the slackify-markdown package to avoid conflicting with repositories using pnpm. - mkdir slackify - cd slackify - npm init -y - name: Install slackify-markdown package shell: bash - working-directory: slackify - run: | - npm install slackify-markdown@4.3.1 + run: npm install -g slackify-markdown@4.3.1 - name: Slackify uses: actions/github-script@v6 id: slackify - working-directory: slackify env: MARKDOWN: ${{ inputs.markdown }} with: @@ -46,8 +37,4 @@ runs: core.setOutput('text', mrkdwn); } catch (error) { core.setFailed(error.message); - } - - name: Clean up slackify directory - shell: bash - run: | - rm -rf slackify + } \ No newline at end of file From 23308a64a2ba5afba6eed19cabc09f5110e0ec2d Mon Sep 17 00:00:00 2001 From: Lukasz Gornicki Date: Mon, 4 Nov 2024 20:33:15 +0100 Subject: [PATCH 2/2] Update action.yml --- .github/actions/slackify-markdown/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/slackify-markdown/action.yml b/.github/actions/slackify-markdown/action.yml index 7279ee56..9dead14c 100644 --- a/.github/actions/slackify-markdown/action.yml +++ b/.github/actions/slackify-markdown/action.yml @@ -21,7 +21,7 @@ runs: node-version: 16 - name: Install slackify-markdown package shell: bash - run: npm install -g slackify-markdown@4.3.1 + run: npm install slackify-markdown@4.3.1 - name: Slackify uses: actions/github-script@v6 id: slackify @@ -37,4 +37,4 @@ runs: core.setOutput('text', mrkdwn); } catch (error) { core.setFailed(error.message); - } \ No newline at end of file + }