@mafintosh/ci-testing 3.0.1 → 3.0.4

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]
@@ -18,19 +18,14 @@ jobs:
18
18
  with:
19
19
  node-version: lts/*
20
20
  registry-url: 'https://registry.npmjs.org'
21
- - run: npm whoami
22
- env:
23
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
24
21
  - run: |
25
22
  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
23
  npm version $VERSION --no-git-tag-version --allow-same-version
29
24
  git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
30
25
  if ! git ls-remote --tags origin | grep -q "refs/tags/v$VERSION$"; then
31
26
  git tag "v$VERSION"
32
27
  git push origin "v$VERSION"
33
28
  fi
34
- npm publish --access public --provenance --tag $TAG
29
+ npm publish --access public --provenance --tag latest --ignore-scripts
35
30
  env:
36
31
  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.4",
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 }}