fix: remove unnecessary code #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
autorelease: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
registry-url: "https://registry.npmjs.org/" | |
scope: "@inubekit" | |
always-auth: true | |
- name: Configure Git | |
run: | | |
git config --global user.email cmarin6051@gmail.com | |
git config --global user.name cmarin001 | |
- name: Configure npm | |
run: | | |
echo "@inubekit:registry=https://registry.npmjs.org/" >> .npmrc | |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc | |
- name: Install Dependencies | |
run: npm install | |
- name: Make script executable | |
run: chmod +x ./release-script.sh | |
- name: Execute Release Script | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # Ensure this is set in your repo's secrets if you need it for npm publish | |
run: | | |
./release-script.sh |