Skip to content

Commit

Permalink
add release action
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens committed Sep 13, 2022
1 parent 3591f06 commit 210492a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@main
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@main
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test

dtslint:
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Release

on:
workflow_dispatch:

jobs:
publish:
name: Release
runs-on: ubuntu-latest
environment: release
steps:
- uses: actions/checkout@main
with:
fetch-depth: 0
persist-credentials: false

- run: npm publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 210492a

Please sign in to comment.