Skip to content

Commit

Permalink
fix: global installs do not work as I expected
Browse files Browse the repository at this point in the history
  • Loading branch information
fmvilas committed Oct 30, 2024
1 parent c6d223f commit e150736
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/actions/slackify-markdown/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,25 @@ 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]
run: |
cd slackify
npm install [email protected]
- name: Slackify
uses: actions/github-script@v6
id: slackify
env:
MARKDOWN: ${{ inputs.markdown }}
with:
script: |
const slackifyMarkdown = require('slackify-markdown');
const slackifyMarkdown = require('./slackify/node_modules/slackify-markdown');
try {
const md = process.env.MARKDOWN;
Expand Down

0 comments on commit e150736

Please sign in to comment.