Skip to content

Commit

Permalink
Replace task steps with npm commands (#27)
Browse files Browse the repository at this point in the history
Signed-off-by: Nana Essilfie-Conduah <[email protected]>
  • Loading branch information
Nana-EC authored Nov 21, 2023
1 parent 074c83e commit ecb259d
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,6 @@ jobs:
with:
ref: ${{ github.event.inputs.tag || '' }}

- name: Install Task
uses: arduino/setup-task@e26d8975574116b0097a1161e0fe16ba75d84c1c # v1.0.3
with:
version: 3.7.0

- name: Install PNPM
uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0
with:
Expand All @@ -123,8 +118,8 @@ jobs:
with:
node-version: 18

- name: Compile Code
run: task build
- name: Build Code
run: npm run build

publish-release:
if: github.actor == 'NanaEC' || github.actor == 'nathanklick' || github.actor == 'kpachhai'
Expand All @@ -142,11 +137,6 @@ jobs:
with:
ref: ${{ github.event.inputs.tag || '' }}

- name: Install Task
uses: arduino/setup-task@e26d8975574116b0097a1161e0fe16ba75d84c1c # v1.0.3
with:
version: 3.7.0

- name: Install PNPM
uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0
with:
Expand All @@ -170,7 +160,7 @@ jobs:
if: ${{ github.event.inputs.dry-run-enabled != 'true' }}
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: task publish -- ${{ steps.publish.outputs.args }}
run: pnpm publish -- ${{ steps.publish.outputs.args }}

- name: Generate Github Release
uses: ncipollo/release-action@6c75be85e571768fa31b40abf38de58ba0397db5 # v1.13.0
Expand Down

0 comments on commit ecb259d

Please sign in to comment.