feat: Capacitor 6 upgrade (#273) #17
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: Pre-Release | |
on: | |
push: | |
branches: | |
- 'release/**' | |
jobs: | |
increment-version: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 16.x | |
- name: Assign version to RELEASE_VERSION environment variable | |
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/*/}" >> $GITHUB_ENV | |
- name: Bump npm package version | |
run: npm version $RELEASE_VERSION --no-git-tag-version --allow-same-version | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
working-directory: plugin | |
# Disabling this for now. It works locally? 🤷 | |
# - name: Generate changelog | |
# run: npx -y conventional-changelog-cli -p conventionalcommits -i CHANGELOG.md -s -k plugin/package.json | |
- name: Push version bump and changelog commit | |
uses: EndBug/add-and-commit@v9 | |
- name: Generate .npmrc | |
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc | |
working-directory: plugin | |
- name: Validate Publish Flow | |
run: | | |
npm install | |
npm publish --dry-run | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
working-directory: plugin |