Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Asgeir Storesund Nilsen committed Oct 29, 2022
1 parent a82bd3a commit afdf306
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,11 @@ jobs:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
ref: main
- name: Parse version from tag
id: version
uses: release-kit/semver@v1
Expand All @@ -40,8 +37,9 @@ jobs:
{
"version": "${{ steps.version.outputs.full }}"
}
- run: cat package.json
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- run: |
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git config --global user.name 'github-actions[bot]'
git add package.json && \
git commit -m "Updated to version ${{ steps.version.outputs.full }}" && \
git push origin main

0 comments on commit afdf306

Please sign in to comment.