Skip to content

Commit

Permalink
Fix publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jarda-svoboda committed Jul 12, 2023
1 parent 0c0eaea commit 45d625d
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- name: Publish package
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
run: |
npm install
npm version ${{ inputs.version }}
npm publish
- uses: nyaa8/package-version@v1
with:
path: 'package.json'
- name: Commit files

- name: Install dependencies
run: npm install

- name: Update version
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -a -m '`sveltekit-i18n@${{ env.PACKAGE_VERSION }}` has been published'
npm version ${{ inputs.version }}
- name: Publish package
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
run: npm publish

- name: Push changes
uses: ad-m/github-push-action@master
run: git push

0 comments on commit 45d625d

Please sign in to comment.