@@ -40,17 +40,13 @@ jobs:
4040 permissions :
4141 contents : write # for actions/create-release to create a release
4242 needs : [setup_variables]
43- # The type of runner that the job will run on
4443 runs-on : ubuntu-latest
4544
46- # Steps represent a sequence of tasks that will be executed as part of the
47- # job
4845 steps :
49- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access
50- # it
51- - name : Checkout code
52- # https://github.com/marketplace/actions/checkout
46+ - name : Checkout 🛎️
5347 uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
48+ with :
49+ fetch-tags : false
5450
5551 # Runs a single command using the runners shell
5652 - name : Create release for tag
@@ -70,23 +66,24 @@ jobs:
7066 runs-on : ubuntu-latest
7167
7268 steps :
73- # https://github.com/marketplace/actions/checkout
74- - uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
75- # https://github.com/marketplace/actions/setup-node-js-environment
76- - uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
69+ - name : Checkout 🛎️
70+ uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
71+ with :
72+ fetch-tags : false
73+
74+ - name : Setup workspace ⚙️
75+ uses : ./.github/actions/setup-workspace
7776 with :
78- node-version : 22.20.0
79- registry-url : https://registry.npmjs.org/
80- - name : Check lock file
81- # runs npm install using package-lock.json and verifies
82- # if dependencies are matching with package.json or not
83- run : npm ci --ignore-scripts
77+ os : ubuntu-latest
78+ node-version : 22
79+
8480 # This will tell npm to publish your scoped package with public access
8581 - name : Publish with latest tag
8682 if : ${{ needs.setup_variables.outputs.isLatest == 'true' }}
8783 run : npm publish --access public
8884 env :
8985 NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
86+
9087 - name : Publish with next tag
9188 if : ${{ needs.setup_variables.outputs.isLatest != 'true' }}
9289 run : npm publish --access public --tag next
0 commit comments