Skip to content

chore: node:20-alpine3.18 #29

chore: node:20-alpine3.18

chore: node:20-alpine3.18 #29

Workflow file for this run

name: Publish Package to npm.pkg.github
on:
repository_dispatch:
types: [semantic-release] # curl -v -H "Accept: application/vnd.github.everest-preview+json" -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/repos/[org-name-or-username]/[repository]/dispatches -d '{ "event_type": "semantic-release" }'
push:
branches:
- main
jobs:
deploy:
name: Release
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
# runs-on: [self-hosted, stage]
# container:
# image: ubuntu:latest
runs-on: ubuntu-latest
container:
image: node:20-alpine3.18
steps:
# - name: OS - Update
# run: apt-get update -y
# - name: OS - Installing packages
# run: apt-get install tzdata
# - name: OS - Installing Git CLI
# run: apt-get install git-all -y
- name: OS - Installing dep
run: apk add curl git bash jq
- name: Node.js Setup
uses: actions/setup-node@v3
with:
node-version: '20.8.1'
registry-url: 'https://npm.pkg.github.com'
scope: '@aziontech'
always-auth: true
env:
NODE_AUTH_TOKEN: ${{ secrets.GH_PACKAGES_SECRET }}
- name: Release
shell: bash
run: |
rm -rf ./*
git clone https://github.com/aziontech/azion-theme.git && cd ./azion-theme && npm install
npx semantic-release
env:
GH_TOKEN: ${{ secrets.GIT_PKG }}
GITHUB_TOKEN: ${{ secrets.GIT_PKG }}
NPM_TOKEN: ${{ secrets.GIT_PKG }}
NODE_AUTH_TOKEN: ${{ secrets.GIT_PKG }}