This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
Update #555
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: Update | |
on: | |
schedule: | |
- cron: '10 10 */2 * *' | |
jobs: | |
check-and-update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: fregante/setup-git-user@v2 | |
- name: Try updating the version | |
run: | | |
npm publish || true # Try publishing the version in git, in case it was manually changed | |
if npm version $(npm info web-ext version); then | |
npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}" | |
npm publish | |
git push --follow-tags | |
fi |