Skip to content

Commit 1cc7498

Browse files
committed
update github action to correctly install deno
1 parent 5930110 commit 1cc7498

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

.github/workflows/publish.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,26 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v2
15+
- name: Clone repository
16+
uses: actions/checkout@v3
1617

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

23-
- name: Run Deno build script
24-
run: deno run -A build.ts
23+
- name: Run Deno build script
24+
run: deno run -A build.ts
2525

26-
- name: Navigate to npm directory
27-
run: cd ./npm
26+
- name: Navigate to npm directory
27+
run: cd ./npm
2828

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

35-
- name: Publish to NPM
36-
run: npm publish --dry-run
37-
working-directory: ./npm
35+
- name: Publish to NPM
36+
run: npm publish --dry-run
37+
working-directory: ./npm

0 commit comments

Comments
 (0)