diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml index 04689ac..9002bae 100644 --- a/.github/workflows/release-please.yaml +++ b/.github/workflows/release-please.yaml @@ -7,7 +7,20 @@ jobs: release-please: runs-on: ubuntu-latest steps: - - uses: google-github-actions/release-please-action@v3 + - uses: google-github-actions/release-please-action@v4 + id: release with: release-type: node - package-name: release-please-action + - uses: actions/checkout@v4 + if: ${{ steps.release.outputs.release_created }} + - uses: actions/setup-node@v4 + 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 publish + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + if: ${{ steps.release.outputs.release_created }} diff --git a/Jenkinsfile b/Jenkinsfile index 7c707d7..b4ae632 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -32,30 +32,5 @@ pipeline { } } } // end stage("End Build code") - stage("Release") { - when { - buildingTag() - } - agent { - kubernetes { - label 'release-' + UUID.randomUUID().toString() - inheritFrom 'default' - yamlFile './cbci-templates/fmforci.yaml' - } - } - steps { - container(name: "server", shell: 'sh') { - withCredentials([string(credentialsId: 'NPM-OpenFeature-publish-token', variable: 'TOKEN')]) { - sh script : """ - npm set //registry.npmjs.org/:_authToken=${TOKEN} - # can we get this from the above without rebuilding? - yarn --frozen-lockfile - yarn build - yarn publish - """, label: "publish to npmjs.org" - } - } //end container - } - } // end Release } // end stages } // end pipeline