UNPKG

insomnia-plugin-php-xdebug

Version:
27 lines (25 loc) 961 B
stages: - deploy deploy:npmjs:stable: image: node:lts when: manual stage: deploy only: - master before_script: - curl --location --output /usr/local/bin/release-cli "https://gitlab.com/api/v4/projects/gitlab-org%2Frelease-cli/packages/generic/release-cli/latest/release-cli-linux-amd64" - chmod +x /usr/local/bin/release-cli - release-cli -v - npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN # It's not possible to use an environment variable from the "script" section in the "release" section, # so we use a temporary file to pass the version # s. https://stackoverflow.com/a/77904969 - echo $(node -p "require('./package.json').version") > /tmp/version.txt - > echo "Version in package.json: $(cat /tmp/version.txt)" script: - npm publish release: name: "Release $(cat /tmp/version.txt)" tag_name: "$(cat /tmp/version.txt)" description: "Release created by GitLab CI"