Skip to content

Commit

Permalink
chore: always run npm build for testing purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Oct 10, 2021
1 parent e531b0c commit 94d918b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ jobs:
id: get_tag_version
run: echo ::set-output name=TAG_VERSION::${GITHUB_REF/refs\/tags\//}
- uses: actions/setup-node@v2
if: startsWith(github.ref, 'refs/tags/')
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- name: npm build
run: deno run --allow-read --allow-write=./npm --allow-net --allow-run --no-check ./scripts/build_npm.ts ${{steps.get_tag_version.outputs.TAG_VERSION}}
- name: npm publish
if: startsWith(github.ref, 'refs/tags/')
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
deno run --allow-read --allow-write=./npm --allow-net --allow-run --no-check ./scripts/build_npm.ts ${{steps.get_tag_version.outputs.TAG_VERSION}}
cd npm
npm publish --access public
2 changes: 1 addition & 1 deletion scripts/build_npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ await build({
outDir: "./npm",
package: {
name: "@dprint/formatter",
version: Deno.args[0],
version: Deno.args[0] ?? "0.0.0",
description: "Wasm formatter for dprint plugins.",
repository: {
type: "git",
Expand Down

0 comments on commit 94d918b

Please sign in to comment.