Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
disjukr committed May 19, 2022
1 parent f3616f4 commit d0319fe
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish to NPM
on:
release:
types: [released]

jobs:
publish-to-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 17.x
registry-url: https://registry.npmjs.org
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- run: deno task build:npm
- run: npm publish --access=public
working-directory: tmp/npm/wrp
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access=public
working-directory: tmp/npm/wrp-react
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"tasks": {
"build:npm": "deno run -A scripts/build-npm-packages/entrypoint.ts",
"build:npm": "deno run -A --no-check scripts/build-npm-packages/entrypoint.ts",
"fmt": "deno fmt --ignore=src/generated,tmp"
},
"compilerOptions": {
Expand Down

0 comments on commit d0319fe

Please sign in to comment.