bump version v0.22.2 #67
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: publish | |
on: | |
push: | |
tags: | |
- v[0-9]+.[0-9]+.[0-9]+ | |
- v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+ | |
concurrency: | |
group: publish-${{ github.ref }} | |
cancel-in-progress: false | |
jobs: | |
release: | |
uses: openrewrite/gh-automation/.github/workflows/publish-gradle.yml@main | |
secrets: | |
gradle_enterprise_access_key: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | |
ossrh_username: ${{ secrets.OSSRH_USERNAME }} | |
ossrh_token: ${{ secrets.OSSRH_TOKEN }} | |
ossrh_signing_key: ${{ secrets.OSSRH_SIGNING_KEY }} | |
ossrh_signing_password: ${{ secrets.OSSRH_SIGNING_PASSWORD }} | |
release-js: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Update package.json version from tag | |
working-directory: openrewrite | |
run: | | |
TAG_VERSION=${GITHUB_REF#refs/tags/} | |
echo "Release tag is $TAG_VERSION" | |
npm version $TAG_VERSION --no-git-tag-version | |
- name: Commit version updates | |
working-directory: openrewrite | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
git add package.json package-lock.json | |
git commit -m "bump version ${GITHUB_REF#refs/tags/}" | |
git push https://${GH_TOKEN}@github.com/openrewrite/rewrite-javascript.git HEAD:main | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: publish-npm | |
working-directory: openrewrite | |
run: | | |
npm ci | |
npm run build | |
npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |