Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: global installs do not work as I expected #319

Merged
merged 3 commits into from
Nov 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 slackify-markdown@4.3.1
working-directory: slackify
run: |
npm install slackify-markdown@4.3.1
- 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
Loading