diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5154402..3e93686 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,8 +6,9 @@ name: Publish on: - release: - types: [created] + push: + tags: + - 'v*' workflow_dispatch: jobs: @@ -17,7 +18,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: 17 + node-version: 16 - run: npm ci - run: npm test # - name: Zip @@ -63,7 +64,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: 17 + node-version: 16 registry-url: https://registry.npmjs.org/ - run: npm ci - run: npm publish @@ -80,9 +81,9 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: 17 - registry-url: https://npm.pkg.github.com/ - scope: 'johnakerman' + node-version: 16 + registry-url: 'https://npm.pkg.github.com' + scope: '@johnakerman' - name: Update Package Name run: |