Skip to content

Commit

Permalink
fix: added publishing back in
Browse files Browse the repository at this point in the history
  • Loading branch information
zeddotes committed Oct 13, 2022
1 parent c5334a2 commit 0bc4ea0
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 37 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/publish-package-on-release.txt

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/publish-package-on-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish Package on Release
on:
push:
branches:
- main
paths:
- 'CHANGELOG.md'
jobs:
release:
name: publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created }}
- run: npm ci
if: ${{ steps.release.outputs.release_created }}
- run: npm run test
env:
CI: true
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTOMATION_TOKEN_DTSSTN}}
if: ${{ steps.release.outputs.release_created }}

0 comments on commit 0bc4ea0

Please sign in to comment.