Skip to content

Commit

Permalink
chore: update github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
iShibi committed Oct 2, 2021
1 parent 943df37 commit cb7664a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,25 @@ on:
types: [published]
jobs:
NPM:
name: npm-publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v2

- uses: actions/setup-node@v2
- name: Install Node v16
uses: actions/setup-node@v2
with:
node-version: 16
registry-url: "https://registry.npmjs.org"

- run: npm install
- name: Install dependencies
run: npm install

- run: npm run build
- name: Build package
run: npm run build

- run: npm publish
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Run TypeScript Compiler
- name: Run TypeScript compiler
run: npm run build

Doc:
Expand Down

0 comments on commit cb7664a

Please sign in to comment.