Skip to content

add ncc in package.json #6

add ncc in package.json

add ncc in package.json #6

Workflow file for this run

on: [push]
jobs:
find-and-replace-job:
runs-on: ubuntu-latest
name: 'Find and replace on a string'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run find-and-replace to remove refs/heads/
uses: ./
id: findandreplace
with:
source: ${{ github.ref }}
find: 'refs/heads/'
replace: ''
- name: Get the above output
run: echo "The replaced value is ${{ steps.findandreplace.outputs.value }}"
- name: Run find-and-replace to remove slashes
uses: ./
id: findandreplace2
with:
source: ${{ steps.findandreplace.outputs.value }}
find: '/'
replace: '-'
- name: Get the final output
run: echo "The replaced value is ${{ steps.findandreplace2.outputs.value }}"