-
-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (41 loc) · 1.12 KB
/
repeatPublish.yml
File metadata and controls
41 lines (41 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# name: Repeat Publish
#
# on:
# schedule:
# - cron: '0 */1 * * *'
# workflow_dispatch:
#
# jobs:
# repeat_publish:
# runs-on: ubuntu-latest
#
# permissions:
# contents: write
#
# steps:
# - name: Record start time
# run: echo "start_time=$(date +%s)" >> $GITHUB_ENV
#
# - name: Check out repository
# uses: actions/checkout@v3
#
# - name: Set up Node.js
# uses: actions/setup-node@v3
# with:
# node-version: '22.11.0'
# registry-url: 'https://registry.npmjs.org'
#
# - name: Repeat publish 5 versions
# run: npm -- run rp -- --amount=15
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
#
# - name: Commit version bump
# uses: devops-infra/action-commit-push@master
# with:
# github_token: "${{ secrets.GITHUB_TOKEN }}"
# commit_message: "Changed npm package version"
#
# - name: Calculate and display duration
# run: |
# echo "Duration: $((($(date +%s) - $start_time) / 60)) minute(s) and $((($(date +%s) - $start_time) % 60)) second(s)"