Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d68de0e

Browse files
committed
feat: initial Commit
0 parents  commit d68de0e

File tree

15 files changed

+5746
-0
lines changed

15 files changed

+5746
-0
lines changed

.github/workflows/publish.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Publish Package
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ '*' ]
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
jobs:
11+
Verify:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Setup Node.js environment
16+
uses: actions/[email protected]
17+
with:
18+
node-version: 14
19+
- name: Setup and install dependencies
20+
run: |
21+
npm ci
22+
- name: Test
23+
run: npm run test
24+
- name: Build
25+
run: npm run build
26+
Publish:
27+
runs-on: ubuntu-latest
28+
if: ${{ github.ref == 'refs/heads/main' }}
29+
needs: [Verify]
30+
steps:
31+
- uses: actions/checkout@v2
32+
- name: Setup Node.js environment
33+
uses: actions/[email protected]
34+
with:
35+
node-version: 14
36+
- name: Package 📦
37+
run: |
38+
npm ci
39+
npm run build
40+
- name: Publish 🚀
41+
run: npm run semantic-release
42+
env:
43+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.husky/pre-commit

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
npm run prettier
4+
npm run lint
5+
npm test
6+

.husky/prepare-commit-msg

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
exec < /dev/tty && node_modules/.bin/cz --hook || true
3+

.npmignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.npmignore
2+
.github
3+
.husky
4+
node_modules
5+
.gitignore
6+
.git
7+
package-lock.json

README.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Devops Scripts
2+
Collection of scripts to ease out some tasks duriing devops pipelines.
3+
4+
---
5+
## `terraform-cloud` / `tfc`
6+
Terraform cloud scripts
7+
8+
Usage:
9+
10+
```shell
11+
terraform-cloud <action> <resource> [arguments]
12+
```
13+
OR
14+
```shell
15+
tfc <action> <resource> [arguments]
16+
```
17+
### Available Allowed Resources:
18+
- `output`
19+
- `state`
20+
21+
### Available Allowed Actions:
22+
- `get`
23+
- `set`
24+
25+
---

0 commit comments

Comments
 (0)