Skip to content

Publish react-animation v1.3.1 #15

Publish react-animation v1.3.1

Publish react-animation v1.3.1 #15

name: Publish dev release for react-animation
on:
push:
branches: [main]
paths:
- 'packages/react-animation/**'
jobs:
bump-version:
runs-on: ubuntu-latest
concurrency: publish
permissions:
contents: read
id-token: write
steps:
- name: Check out source
uses: actions/checkout@v3
with:
ssh-key: ${{secrets.DEPLOY_KEY}}
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Install dependencies
run: |
npm config set //npm.greensock.com/:_authToken=$GSAP_TOKEN
npm config set @gsap:registry=https://npm.greensock.com
npm ci
- name: Setup Git
run: |
git config user.name github-actions
git config user.email [email protected]
- name: Bump version
# gets the version from the package.json, removes the quotes and the prerelease part, adds the git hash and sets the version
# example: 1.0.0-alpha.0 -> 1.0.0-dev.1234567
run: |
cd packages/react-animation
npm version prerelease --preid="$(git rev-parse --short HEAD)" --no-git-tag-version
cd ../..
- name: Publish
run: |
npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
npm publish -w packages/react-animation --tag next --provenance
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}