Skip to content

Commit

Permalink
update github action to correctly install deno
Browse files Browse the repository at this point in the history
  • Loading branch information
Granitosaurus committed Jul 28, 2024
1 parent 5930110 commit 1cc7498
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,26 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Clone repository
uses: actions/checkout@v3

- name: Install Deno
run: |
curl -fsSL https://deno.land/x/install/install.sh | sh
echo "DENO_INSTALL=/home/runner/.deno" >> $GITHUB_ENV
echo "$DENO_INSTALL/bin" >> $GITHUB_PATH
- name: Install Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x

- name: Run Deno build script
run: deno run -A build.ts
- name: Run Deno build script
run: deno run -A build.ts

- name: Navigate to npm directory
run: cd ./npm
- name: Navigate to npm directory
run: cd ./npm

- name: Setup .npmrc file to publish to npm
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}
- name: Setup .npmrc file to publish to npm
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}

- name: Publish to NPM
run: npm publish --dry-run
working-directory: ./npm
- name: Publish to NPM
run: npm publish --dry-run
working-directory: ./npm

0 comments on commit 1cc7498

Please sign in to comment.