feat: Share files (#68) #35
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: Tagging | |
on: | |
push: | |
branches: ["dev"] | |
jobs: | |
tagging: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8.8.0 | |
run_install: false | |
- name: Get pnpm store directory | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
- uses: actions/cache@v3 | |
name: Setup pnpm cache | |
with: | |
path: ${{ env.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Install dependencies | |
run: pnpm install | |
- name: Git Identity | |
run: | | |
git checkout dev | |
git fetch --all --tags | |
git config --global user.email "[email protected]" | |
git config --global user.name "Antonio Donis" | |
- name: Changelog | |
run: 'pnpx standard-version --message "[ci skip] chore(release): %s"' | |
- name: Push changes | |
run: git push --follow-tags --force origin dev |