diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index b9f1377..171a877 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -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: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e123648 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 }}