Skip to content

Commit

Permalink
upgrade semver action publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
iuccio committed Mar 30, 2024
1 parent 610bd4a commit ae22ee5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,26 @@ jobs:
CI: true

release:
permissions:
contents: write
id-token: write
needs: build
if: github.ref == 'refs/heads/master'
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.ACTION_TOKEN }}
- uses: fregante/setup-git-user@v2
- run: git config --global user.name "dependabot"
- name: Git Checkout
uses: actions/checkout@v4
- name: Use Node.js 21.x
uses: actions/setup-node@v4
with:
node-version: 21.x
registry-url: 'https://registry.npmjs.org'
- name: npm-semver-publish
uses: iuccio/npm-semver-publish-action@v1.10.0
- name: Execute semver npm publishing
uses: iuccio/npm-semver-publish-action@v1.31.0
with:
target-branch: 'master'
provenance: true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

This repository uses [![GitHub Action - iuccio/npm-semantic-publish-action@latest](https://img.shields.io/badge/GitHub_Action_-iuccio%2Fnpm--semantic--publish--action%40latest-2ea44f)](https://github.com/marketplace/actions/npm-semver-publish)

Please consider following this project's author, [Antò](https://github.com/iuccio), and consider starring the project to show your :heart: and support.
Follow [me](https://github.com/iuccio), and consider starring the project to
show your :heart: and support.

## Table of Contents

Expand Down

0 comments on commit ae22ee5

Please sign in to comment.