@mafintosh/ci-testing 3.0.1 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- name: Publish
1
+ name: Release to public npm
2
2
  on:
3
3
  pull_request:
4
4
  types: [closed]
@@ -23,14 +23,12 @@ jobs:
23
23
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
24
24
  - run: |
25
25
  VERSION=$(node -p "require('./package.json').version")
26
- PR_TITLE="${{ github.event.pull_request.title }}"
27
- TAG=$(echo "$PR_TITLE" | grep -oP '(?<=@)\S+' || echo "latest")
28
26
  npm version $VERSION --no-git-tag-version --allow-same-version
29
27
  git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
30
28
  if ! git ls-remote --tags origin | grep -q "refs/tags/v$VERSION$"; then
31
29
  git tag "v$VERSION"
32
30
  git push origin "v$VERSION"
33
31
  fi
34
- npm publish --access public --provenance --tag $TAG
32
+ npm publish --access public --provenance --tag latest --ignore-scripts
35
33
  env:
36
34
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mafintosh/ci-testing",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "hello",
5
5
  "homepage": "https://github.com/mafintosh/ci-testing#readme",
6
6
  "bugs": {
@@ -1,35 +0,0 @@
1
- name: Release to public npm
2
- run-name: "Release (${{ inputs.bump }}${{ inputs.preid && format('-{0}', inputs.preid) || '' }})"
3
- on:
4
- workflow_dispatch:
5
- inputs:
6
- bump:
7
- description: Version bump type
8
- required: true
9
- type: choice
10
- options:
11
- - patch
12
- - minor
13
- - major
14
- - prerelease
15
- preid:
16
- description: Pre-release identifier
17
- required: false
18
- type: string
19
- tag:
20
- description: npm dist-tag
21
- required: false
22
- default: 'latest'
23
- type: string
24
- permissions:
25
- contents: write
26
- id-token: write
27
- jobs:
28
- release:
29
- uses: mafintosh/actions/.github/workflows/public-publish.yml@main
30
- with:
31
- bump: ${{ inputs.bump }}
32
- preid: ${{ inputs.preid }}
33
- tag: ${{ inputs.tag }}
34
- secrets:
35
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}