@ayasofyazilim/saas 0.0.99 → 0.0.101

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.
@@ -29,94 +29,18 @@ jobs:
29
29
  # Checkout project repository
30
30
  - name: Checkout
31
31
  uses: actions/checkout@v3
32
-
33
- # Setup Node.js environment
34
- - name: Setup Node.js
35
- uses: actions/setup-node@v3
36
- with:
37
- registry-url: https://registry.npmjs.org/
38
- node-version: '14'
39
-
40
- # Install dependencies (required by Run tests step)
41
- #- name: Install dependencies
42
- # run: yarn install
43
-
44
- # Tests
45
- #- name: Run tests
46
- # run: yarn test
47
-
48
- # Configure Git
49
- - name: Git configuration
32
+ - name: Install the dependencies
33
+ run: npm i
34
+ - name: Git config
50
35
  run: |
51
- git config user.name "github-actions[bot]"
52
- git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
53
-
54
- # Bump package version
55
- # Use tag latest
56
- - name: Bump release version
57
- if: startsWith(github.event.inputs.release-type, 'pre') != true
58
- run: |
59
- echo "NEW_VERSION=$(npm --no-git-tag-version version $RELEASE_TYPE)" >> $GITHUB_ENV
60
- echo "RELEASE_TAG=latest" >> $GITHUB_ENV
61
- env:
62
- RELEASE_TYPE: ${{ github.event.inputs.release-type }}
63
-
64
- # Bump package pre-release version
65
- # Use tag beta for pre-release versions
66
- - name: Bump pre-release version
67
- if: startsWith(github.event.inputs.release-type, 'pre')
68
- run: |
69
- echo "NEW_VERSION=$(npm --no-git-tag-version --preid=beta version $RELEASE_TYPE)" >> $GITHUB_ENV
70
- echo "RELEASE_TAG=beta" >> $GITHUB_ENV
36
+ git config user.name "${GITHUB_ACTOR}"
37
+ git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
38
+ - name: Initialize the NPM config
39
+ run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
71
40
  env:
72
- RELEASE_TYPE: ${{ github.event.inputs.release-type }}
73
-
74
- # # Update changelog unreleased section with new version
75
- # - name: Update changelog
76
- # uses: superfaceai/release-changelog-action@v1
77
- # with:
78
- # path-to-changelog: CHANGELOG.md
79
- # version: ${{ env.NEW_VERSION }}
80
- # operation: release
81
-
82
- # Commit changes
83
- - name: Commit CHANGELOG.md and package.json changes and create tag
84
- run: |
85
- git add "package.json"
86
- # git add "CHANGELOG.md"
87
- git commit -m "chore: release ${{ env.NEW_VERSION }}"
88
- git tag ${{ env.NEW_VERSION }}
89
-
90
-
91
- # Publish version to public repository
92
- - name: Publish
93
- run: npm publish --verbose --access public --tag ${{ env.RELEASE_TAG }}
41
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
42
+ - name: Run release
43
+ run: npm run release ${{ github.event.inputs.release-type }} --ci
94
44
  env:
95
- NODE_AUTH_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }}
96
-
97
- # Push repository changes
98
- - name: Push changes to repository
99
- env:
100
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
101
- run: |
102
- git pull
103
- git push origin && git push --tags
104
-
105
- # Read version changelog
106
- # - id: get-changelog
107
- # name: Get version changelog
108
- # uses: superfaceai/release-changelog-action@v1
109
- # with:
110
- # path-to-changelog: CHANGELOG.md
111
- # version: ${{ env.NEW_VERSION }}
112
- # operation: read
113
-
114
- # Update GitHub release with changelog
115
- # - name: Update GitHub release documentation
116
- # uses: softprops/action-gh-release@v1
117
- # with:
118
- # tag_name: ${{ env.NEW_VERSION }}
119
- # body: ${{ steps.get-changelog.outputs.changelog }}
120
- # prerelease: ${{ startsWith(github.event.inputs.release-type, 'pre') }}
121
- # env:
122
- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
46
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}