Skip to content

Commit

Permalink
fix: global installs do not work as I expected (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmvilas authored Nov 4, 2024
1 parent c6d223f commit 9dd38e4
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/actions/slackify-markdown/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,21 @@ 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
run: npm install -g [email protected]
working-directory: slackify
run: |
npm install [email protected]
- name: Slackify
uses: actions/github-script@v6
id: slackify
working-directory: slackify
env:
MARKDOWN: ${{ inputs.markdown }}
with:
Expand All @@ -37,4 +46,8 @@ runs:
core.setOutput('text', mrkdwn);
} catch (error) {
core.setFailed(error.message);
}
}
- name: Clean up slackify directory
shell: bash
run: |
rm -rf slackify

0 comments on commit 9dd38e4

Please sign in to comment.