11.26.2 #49
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release latest version on npm | |
on: | |
release: | |
types: [released] | |
jobs: | |
release_to_npm: | |
name: Release to npm | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
registry-url: 'https://registry.npmjs.org' | |
- run: npm install -g npm | |
- run: yarn | |
- name: Release to npm | |
run: npm publish --provenance --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Get the version | |
id: get_version | |
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> "$GITHUB_OUTPUT" | |
- name: Trigger job | |
run: | | |
curl --fail --request POST \ | |
--form token=${{ secrets.TOKEN }} \ | |
--form ref=3.2.x \ | |
--form "variables[ADDON_NAME]=design-comuni-plone-theme" \ | |
--form "variables[ADDON_TAG]=${{ steps.get_version.outputs.VERSION }}" \ | |
"https://gitlab.com/api/v4/projects/${{ secrets.PROJECT_ID }}/trigger/pipeline" |