Skip to content

Commit

Permalink
autodeploy
Browse files Browse the repository at this point in the history
  • Loading branch information
uriva committed Nov 14, 2023
1 parent dfc20cb commit d4f2cbc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: hooks
on:
release:
types:
- created
jobs:
npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Deno Version
uses: denolib/setup-deno@v2
- run: deno task build ${GITHUB_REF#refs/*/}
- uses: actions/setup-node@v3
with:
registry-url: "https://registry.npmjs.org"
- run: npm publish
working-directory: dist
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion build_npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ await build({
shims: { deno: true },
package: {
name: "english-script",
version: "0.0.1",
version: Deno.args[0],
description: "Embed natural language in your code",
license: "MIT",
repository: {
Expand Down

0 comments on commit d4f2cbc

Please sign in to comment.